Changeset 131 for trunk/utils.c
- Timestamp:
- 2006-09-03T09:37:05+02:00 (7 years ago)
- File:
-
- 1 edited
-
trunk/utils.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r121 r131 371 371 372 372 memcpy(&OG(included_files), &EG(included_files), sizeof(EG(included_files))); 373 memcpy(&OG(open_files), &CG(open_files), sizeof(CG(open_files)));374 373 375 374 #ifdef HAVE_XCACHE_CONSTANT … … 388 387 389 388 TG(included_files) = &EG(included_files); 390 TG(open_files) = &CG(open_files); 391 392 zend_llist_init(TG(open_files), sizeof(zend_file_handle), (void (*)(void *)) zend_file_handle_dtor, 0); 389 393 390 zend_hash_init_ex(TG(included_files), 5, NULL, NULL, 0, 1); 394 391 #ifdef HAVE_XCACHE_CONSTANT … … 440 437 i = 1; 441 438 zend_hash_add(&OG(included_files), sandbox->filename, strlen(sandbox->filename) + 1, (void *)&i, sizeof(int), NULL); 442 for (handle = zend_llist_get_first_ex(TG(open_files), &lpos);443 handle;444 handle = zend_llist_get_next_ex(TG(open_files), &lpos)) {445 zend_llist_add_element(&OG(open_files), handle);446 }447 439 } 448 440 /* }}} */ … … 466 458 TG(function_table).pDestructor = NULL; 467 459 TG(class_table).pDestructor = NULL; 468 TG(open_files)->dtor = NULL;469 460 } 470 461 … … 476 467 zend_hash_destroy(&TG(class_table)); 477 468 zend_hash_destroy(TG(included_files)); 478 zend_llist_destroy(TG(open_files));479 469 480 470 /* restore orig here, as EG/CG holded tmp before */ 481 471 memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files))); 482 memcpy(&CG(open_files), &OG(open_files), sizeof(CG(open_files)));483 472 484 473 if (sandbox->alloc) {
Note: See TracChangeset
for help on using the changeset viewer.

