Changeset 961
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r954 r961 585 585 ZEND_24(NOTHING, const) char *filename; 586 586 587 #ifndef ZEND_ENGINE_2_2588 587 HashTable orig_included_files; 589 588 HashTable *tmp_included_files; 590 #endif591 589 592 590 #ifdef HAVE_XCACHE_CONSTANT … … 774 772 memset(sandbox, 0, sizeof(sandbox[0])); 775 773 776 #ifndef ZEND_ENGINE_2_2777 774 memcpy(&OG(included_files), &EG(included_files), sizeof(EG(included_files))); 778 #endif779 775 780 776 #ifdef HAVE_XCACHE_CONSTANT … … 795 791 #endif 796 792 797 #ifndef ZEND_ENGINE_2_2798 793 TG(included_files) = &EG(included_files); 799 #endif 800 801 #ifndef ZEND_ENGINE_2_2 794 802 795 zend_hash_init_ex(TG(included_files), 5, NULL, NULL, 0, 1); 803 #endif804 796 #ifdef HAVE_XCACHE_CONSTANT 805 797 h = OG(zend_constants); … … 934 926 #endif 935 927 936 #ifndef ZEND_ENGINE_2_2937 928 i = 1; 929 /* still needed because in zend_language_scanner.l, require()/include() check file_handle.handle.stream.handle */ 938 930 zend_hash_add(&OG(included_files), sandbox->filename, strlen(sandbox->filename) + 1, (void *)&i, sizeof(int), NULL); 939 #endif940 931 } 941 932 /* }}} */ … … 988 979 zend_hash_destroy(&TG(auto_globals)); 989 980 #endif 990 #ifndef ZEND_ENGINE_2_2991 981 zend_hash_destroy(TG(included_files)); 992 #endif 993 994 #ifndef ZEND_ENGINE_2_2 982 995 983 /* restore orig here, as EG/CG holded tmp before */ 996 984 memcpy(&EG(included_files), &OG(included_files), sizeof(EG(included_files))); 997 #endif998 985 999 986 #ifdef XCACHE_ERROR_CACHING -
trunk/xcache.c
r960 r961 1848 1848 xc_entry_data_php_t restored_php; 1849 1849 zend_bool catched; 1850 zend_uint i; 1851 1852 /* still needed because in zend_language_scanner.l, require()/include() check file_handle.handle.stream.handle */ 1853 i = 1; 1854 zend_hash_add(&EG(included_files), stored_entry->entry.name.str.val, stored_entry->entry.name.str.len + 1, (void *)&i, sizeof(int), NULL); 1850 1855 1851 1856 CG(in_compilation) = 1;
Note: See TracChangeset
for help on using the changeset viewer.

