Legend:
- Unmodified
- Added
- Removed
-
tags/1.1/utils.c
r148 r246 272 272 NULL 273 273 ) == FAILURE) { 274 CG(in_compilation) = 1;275 CG(compiled_filename) = filename;276 274 CG(zend_lineno) = 0; 277 275 #ifdef IS_UNICODE … … 308 306 NULL 309 307 ) == FAILURE) { 310 CG(in_compilation) = 1;311 CG(compiled_filename) = filename;312 308 CG(zend_lineno) = ZESW(func->op_array.opcodes[0].lineno, func->op_array.line_start); 313 309 #ifdef IS_UNICODE … … 341 337 ZESW(&stored_ce_ptr, NULL) 342 338 ) == FAILURE) { 343 CG(in_compilation) = 1;344 CG(compiled_filename) = filename;345 339 CG(zend_lineno) = ZESW(0, cep->line_start); 346 340 #ifdef IS_UNICODE … … 396 390 397 391 sandbox->filename = filename; 392 393 #ifdef E_STRICT 394 sandbox->orig_user_error_handler_error_reporting = EG(user_error_handler_error_reporting); 395 EG(user_error_handler_error_reporting) &= ~E_STRICT; 396 #endif 398 397 399 398 return sandbox; … … 428 427 /* install class */ 429 428 while (b != NULL) { 430 xc_install_class(sandbox->filename, (xc_cest_t*) b->pData,429 xc_install_class(sandbox->filename, (xc_cest_t*) b->pData, 431 430 BUCKET_KEY_TYPE(b), ZSTR(BUCKET_KEY(b)), b->nKeyLength TSRMLS_CC); 432 431 b = b->pListNext; … … 448 447 449 448 if (install) { 449 CG(in_compilation) = 1; 450 CG(compiled_filename) = sandbox->filename; 451 CG(zend_lineno) = 0; 450 452 xc_sandbox_install(sandbox TSRMLS_CC); 453 CG(in_compilation) = 0; 454 CG(compiled_filename) = NULL; 451 455 452 456 /* no free as it's installed */ … … 469 473 memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files))); 470 474 475 #ifdef E_STRICT 476 EG(user_error_handler_error_reporting) = sandbox->orig_user_error_handler_error_reporting; 477 #endif 478 471 479 if (sandbox->alloc) { 472 480 efree(sandbox); -
tags/1.1/utils.h
r131 r246 35 35 typedef struct { 36 36 int alloc; 37 int orig_user_error_handler_error_reporting; 37 38 char *filename; 38 39 -
tags/1.1/xcache.c
r154 r246 985 985 986 986 restore: 987 if (php_check_open_basedir(stored_xce->name.str.val TSRMLS_CC) != 0) { 988 return NULL; 989 } 990 987 CG(in_compilation) = 1; 988 CG(compiled_filename) = stored_xce->name.str.val; 989 CG(zend_lineno) = 0; 991 990 #ifdef DEBUG 992 991 fprintf(stderr, "restoring\n"); … … 1016 1015 zend_bailout(); 1017 1016 } 1017 CG(in_compilation) = 0; 1018 CG(compiled_filename) = NULL; 1018 1019 #ifdef DEBUG 1019 1020 fprintf(stderr, "restored\n");

