Changeset 496 for trunk/xcache.c


Ignore:
Timestamp:
2008-01-04T12:38:57+01:00 (6 years ago)
Author:
moo
Message:

fixed #157: support user error handler for E_STRICT. E_STRICT is now cached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r495 r496  
    664664        zend_u_is_auto_global(aginfo->type, aginfo->key, aginfo->key_len TSRMLS_CC); 
    665665    } 
     666#endif 
     667#ifdef E_STRICT 
     668    /* restore trigger errors */ 
     669    for (i = 0; i < p->compilererror_cnt; i ++) { 
     670        xc_compilererror_t *error = &p->compilererrors[i]; 
     671        CG(zend_lineno) = error->lineno; 
     672        zend_error(error->type, "%s", error->error); 
     673    } 
     674    CG(zend_lineno) = 0; 
    666675#endif 
    667676 
     
    11151124    } 
    11161125    /* }}} */ 
     1126#ifdef E_STRICT 
     1127    php->compilererrors = ((xc_sandbox_t *) XG(sandbox))->compilererrors; 
     1128    php->compilererror_cnt = ((xc_sandbox_t *) XG(sandbox))->compilererror_cnt; 
     1129#endif 
    11171130    /* {{{ find inherited classes that should be early-binding */ 
    11181131    php->have_early_binding = 0; 
Note: See TracChangeset for help on using the changeset viewer.