Changeset 954 for trunk/xcache.c
- Timestamp:
- 2012-07-06T11:18:49+02:00 (12 months ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r950 r954 746 746 /* }}} */ 747 747 748 static zend_op_array *xc_entry_install(xc_entry_php_t *entry_php TSRMLS_DC) /* {{{ */748 static zend_op_array *xc_entry_install(xc_entry_php_t *entry_php, zend_file_handle *h TSRMLS_DC) /* {{{ */ 749 749 { 750 750 zend_uint i; … … 815 815 816 816 i = 1; 817 #ifndef ZEND_ENGINE_2_2 817 818 zend_hash_add(&EG(included_files), entry_php->entry.name.str.val, entry_php->entry.name.str.len+1, (void *)&i, sizeof(int), NULL); 819 #endif 820 if (h) { 821 zend_llist_add_element(&CG(open_files), h); 822 } 818 823 819 824 #ifndef ZEND_ENGINE_2 … … 1840 1845 } 1841 1846 /* }}} */ 1842 static zend_op_array *xc_compile_restore(xc_entry_php_t *stored_entry, xc_entry_data_php_t *stored_php TSRMLS_DC) /* {{{ */1847 static zend_op_array *xc_compile_restore(xc_entry_php_t *stored_entry, xc_entry_data_php_t *stored_php, zend_file_handle *h TSRMLS_DC) /* {{{ */ 1843 1848 { 1844 1849 zend_op_array *op_array; … … 1860 1865 catched = 0; 1861 1866 zend_try { 1862 op_array = xc_entry_install(&restored_entry TSRMLS_CC);1867 op_array = xc_entry_install(&restored_entry, h TSRMLS_CC); 1863 1868 } zend_catch { 1864 1869 catched = 1; … … 2118 2123 /* found entry */ 2119 2124 if (stored_entry && stored_php) { 2120 return xc_compile_restore(stored_entry, stored_php TSRMLS_CC);2125 return xc_compile_restore(stored_entry, stored_php, NULL /* h */ TSRMLS_CC); 2121 2126 } 2122 2127 … … 2134 2139 op_array = xc_sandbox(xc_compile_file_sandboxed, (void *) &sandboxed_compiler, h->opened_path ? h->opened_path : h->filename TSRMLS_CC); 2135 2140 if (sandboxed_compiler.stored_entry) { 2136 return xc_compile_restore(sandboxed_compiler.stored_entry, sandboxed_compiler.stored_php TSRMLS_CC);2141 return xc_compile_restore(sandboxed_compiler.stored_entry, sandboxed_compiler.stored_php, sandboxed_compiler.h TSRMLS_CC); 2137 2142 } 2138 2143 else {
Note: See TracChangeset
for help on using the changeset viewer.

