Changeset 640 for trunk/xcache.c
- Timestamp:
- 07/05/2009 04:43:38 PM (4 years ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r638 r640 1854 1854 1855 1855 if (!XG(internal_table_copied)) { 1856 #ifdef HAVE_XCACHE_CONSTANT1857 zend_constant tmp_const;1858 #endif1859 1856 zend_function tmp_func; 1860 1857 xc_cest_t tmp_cest; … … 1867 1864 1868 1865 #ifdef HAVE_XCACHE_CONSTANT 1869 zend_hash_init_ex(&XG(internal_constant_table), 20, NULL, NULL, 1, 0);1866 zend_hash_init_ex(&XG(internal_constant_table), 20, NULL, (dtor_func_t) xc_zend_constant_dtor, 1, 0); 1870 1867 #endif 1871 1868 zend_hash_init_ex(&XG(internal_function_table), 100, NULL, NULL, 1, 0); … … 1873 1870 1874 1871 #ifdef HAVE_XCACHE_CONSTANT 1875 zend_hash_copy(&XG(internal_constant_table), EG(zend_constants), (copy_ctor_func_t) xc_copy_zend_constant, &tmp_const, sizeof(tmp_const));1872 xc_copy_internal_zend_constants(&XG(internal_constant_table), EG(zend_constants)); 1876 1873 #endif 1877 1874 zend_hash_copy(&XG(internal_function_table), CG(function_table), NULL, &tmp_func, sizeof(tmp_func)); … … 1934 1931 1935 1932 #ifdef HAVE_XCACHE_CONSTANT 1936 zend_hash_init_ex(&xcache_globals->internal_constant_table, 1, NULL, NULL, 1, 0);1933 zend_hash_init_ex(&xcache_globals->internal_constant_table, 1, NULL, (dtor_func_t) xc_zend_constant_dtor, 1, 0); 1937 1934 #endif 1938 1935 zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0);

