Changeset 669 in svn for trunk/utils.c


Ignore:
Timestamp:
2009-08-07T02:31:12Z (6 years ago)
Author:
Xuefer
Message:

use XCACHE_ERROR_CACHING macro to simplify ifdefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r668 r669  
    530530#define OG(x) (sandbox->orig_##x)
    531531/* }}} */
    532 #if defined(E_STRICT) || defined(E_DEPRECATED)
     532#ifdef XCACHE_ERROR_CACHING
    533533static void xc_sandbox_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) /* {{{ */
    534534{
     
    540540    assert(sandbox != NULL);
    541541    switch (type) {
    542 #ifdef E_STRICT:
     542#ifdef E_STRICT
    543543    case E_STRICT:
    544544#endif
     
    740740    sandbox->filename = filename;
    741741
    742 #ifdef E_STRICT
     742#ifdef XCACHE_ERROR_CACHING
    743743    sandbox->orig_user_error_handler_error_reporting = EG(user_error_handler_error_reporting);
    744744    EG(user_error_handler_error_reporting) = 0;
     
    823823    }
    824824
    825 #ifdef E_STRICT
     825#ifdef XCACHE_ERROR_CACHING
    826826    /* restore trigger errors */
    827827    for (i = 0; i < sandbox->compilererror_cnt; i ++) {
     
    840840{
    841841    XG(sandbox) = NULL;
    842 #ifdef E_STRICT
     842#ifdef XCACHE_ERROR_CACHING
    843843    EG(user_error_handler_error_reporting) = sandbox->orig_user_error_handler_error_reporting;
    844844    zend_error_cb = sandbox->orig_zend_error_cb;
     
    886886    memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files)));
    887887
    888 #ifdef E_STRICT
     888#ifdef XCACHE_ERROR_CACHING
    889889    if (sandbox->compilererrors) {
    890890        zend_uint i;
Note: See TracChangeset for help on using the changeset viewer.