Changeset 669
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r668 r669 530 530 #define OG(x) (sandbox->orig_##x) 531 531 /* }}} */ 532 #if defined(E_STRICT) || defined(E_DEPRECATED)532 #ifdef XCACHE_ERROR_CACHING 533 533 static void xc_sandbox_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) /* {{{ */ 534 534 { … … 540 540 assert(sandbox != NULL); 541 541 switch (type) { 542 #ifdef E_STRICT :542 #ifdef E_STRICT 543 543 case E_STRICT: 544 544 #endif … … 740 740 sandbox->filename = filename; 741 741 742 #ifdef E_STRICT742 #ifdef XCACHE_ERROR_CACHING 743 743 sandbox->orig_user_error_handler_error_reporting = EG(user_error_handler_error_reporting); 744 744 EG(user_error_handler_error_reporting) = 0; … … 823 823 } 824 824 825 #ifdef E_STRICT825 #ifdef XCACHE_ERROR_CACHING 826 826 /* restore trigger errors */ 827 827 for (i = 0; i < sandbox->compilererror_cnt; i ++) { … … 840 840 { 841 841 XG(sandbox) = NULL; 842 #ifdef E_STRICT842 #ifdef XCACHE_ERROR_CACHING 843 843 EG(user_error_handler_error_reporting) = sandbox->orig_user_error_handler_error_reporting; 844 844 zend_error_cb = sandbox->orig_zend_error_cb; … … 886 886 memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files))); 887 887 888 #ifdef E_STRICT888 #ifdef XCACHE_ERROR_CACHING 889 889 if (sandbox->compilererrors) { 890 890 zend_uint i; -
trunk/utils.h
r668 r669 74 74 ZESW(xc_cest_t *, void) xc_install_class(char *filename, xc_cest_t *cest, int oplineno, zend_uchar type, zstr key, uint len, ulong h TSRMLS_DC); 75 75 76 #if defined(E_STRICT) || defined(E_DEPRECATED) 77 #define XCACHE_ERROR_CACHING 78 #endif 79 76 80 /* sandbox */ 77 81 typedef struct { … … 98 102 Bucket *tmp_internal_class_tail; 99 103 100 #if defined(E_STRICT) || defined(E_DEPRECATED)104 #ifdef XCACHE_ERROR_CACHING 101 105 int orig_user_error_handler_error_reporting; 102 106 void (*orig_zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args); -
trunk/xcache.c
r662 r669 756 756 } 757 757 #endif 758 #ifdef E_STRICT758 #ifdef XCACHE_ERROR_CACHING 759 759 /* restore trigger errors */ 760 760 for (i = 0; i < p->compilererror_cnt; i ++) { … … 1536 1536 #undef X_FREE_UNUSED 1537 1537 /* }}} */ 1538 #ifdef E_STRICT1538 #ifdef XCACHE_ERROR_CACHING 1539 1539 php->compilererrors = ((xc_sandbox_t *) XG(sandbox))->compilererrors; 1540 1540 php->compilererror_cnt = ((xc_sandbox_t *) XG(sandbox))->compilererror_cnt;
Note: See TracChangeset
for help on using the changeset viewer.

