Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r496 r500 6 6 ChangeLog 7 7 ======== 8 * compiler errors: all compiler warning ( e.g.: E_STRICT) is now cached and is supported for user handler8 * compiler errors: all compiler warning (E_STRICT only currently) is now cached and is supported for user handler 9 9 * added module dependency 10 10 * live with wrong system time: allow caching files with mtime in further -
trunk/processor/processor.m4
r498 r500 746 746 #ifdef E_STRICT 747 747 DEF_STRUCT_P_FUNC(`xc_compilererror_t', , `dnl {{{ 748 DISPATCH(int, type)749 748 DISPATCH(uint, lineno) 750 749 DISPATCH(int, error_len) -
trunk/utils.c
r496 r500 526 526 sandbox = (xc_sandbox_t *) XG(sandbox); 527 527 assert(sandbox != NULL); 528 if (type != E_STRICT) { 529 /* give up, and user handler is not supported in this case */ 530 int i; 531 zend_uint orig_lineno = CG(zend_lineno); 532 zend_error_cb = sandbox->orig_zend_error_cb; 533 534 for (i = 0; i < sandbox->compilererror_cnt; i ++) { 535 compilererror = &sandbox->compilererrors[i]; 536 CG(zend_lineno) = compilererror->lineno; 537 zend_error(E_STRICT, "%s", compilererror->error); 538 } 539 CG(zend_lineno) = orig_lineno; 540 sandbox->compilererror_cnt = 0; 541 542 sandbox->orig_zend_error_cb(type, error_filename, error_lineno, format, args); 543 return; 544 } 545 528 546 if (sandbox->compilererror_cnt <= sandbox->compilererror_size) { 529 547 if (sandbox->compilererror_size) { … … 537 555 } 538 556 compilererror = &sandbox->compilererrors[sandbox->compilererror_cnt++]; 539 compilererror->type = type;540 557 compilererror->lineno = error_lineno; 541 558 compilererror->error_len = zend_vspprintf(&compilererror->error, 0, format, args); … … 721 738 xc_compilererror_t *error = &sandbox->compilererrors[i]; 722 739 CG(zend_lineno) = error->lineno; 723 zend_error( error->type, "%s", error->error);740 zend_error(E_STRICT, "%s", error->error); 724 741 } 725 742 CG(zend_lineno) = 0; -
trunk/xcache.c
r498 r500 670 670 xc_compilererror_t *error = &p->compilererrors[i]; 671 671 CG(zend_lineno) = error->lineno; 672 zend_error( error->type, "%s", error->error);672 zend_error(E_STRICT, "%s", error->error); 673 673 } 674 674 CG(zend_lineno) = 0; -
trunk/xcache.h
r498 r500 268 268 /* {{{ xc_compilererror_t */ 269 269 typedef struct { 270 int type;271 270 uint lineno; 272 271 int error_len;

