Browse Source

tests/bug52160.phpt: report multiple error correctly

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@829 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
bbde30a43a
  1. 1
      ChangeLog
  2. 2
      utils.c
  3. 1
      xcache-test.ini

1
ChangeLog

@ -13,6 +13,7 @@ ChangeLog
1.3.2 2012-?-?
========
* fix constant name handling (possible SIGSEGV)
* tests/bug52160.phpt: report multiple error correctly
1.3.2 2012-03-23
========

2
utils.c

@ -616,7 +616,7 @@ static void xc_sandbox_error_cb(int type, const char *error_filename, const uint
for (i = 0; i < sandbox->compilererror_cnt; i ++) {
compilererror = &sandbox->compilererrors[i];
CG(zend_lineno) = compilererror->lineno;
zend_error(type, "%s", compilererror->error);
zend_error(compilererror->type, "%s", compilererror->error);
}
CG(zend_lineno) = orig_lineno;
sandbox->compilererror_cnt = 0;

1
xcache-test.ini

@ -1,4 +1,5 @@
memory_limit = 256M
error_reporting = E_ALL|E_STRICT
[xcache]
zend_extension_debug_ts=./modules/xcache.so

Loading…
Cancel
Save