Changeset 287
- Timestamp:
- 01/29/07 23:33:40 (1 year ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r286 r287 1 2007-01-29 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Removed some obsolete code 4 1 5 2007-01-04 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 6 eaccelerator/trunk/eaccelerator.c
r286 r287 92 92 static int eaccelerator_is_extension = 0; 93 93 zend_extension* ZendOptimizer = NULL; 94 95 static HashTable eaccelerator_global_function_table;96 static HashTable eaccelerator_global_class_table;97 94 98 95 int binary_eaccelerator_version[2]; … … 1868 1865 if (eaccelerator_mm_instance == NULL) { 1869 1866 return SUCCESS; 1870 }1871 1872 /*1873 * Initialization on first call, comes from eaccelerator_zend_startup().1874 */1875 if (eaccelerator_global_function_table.nTableSize == 0) {1876 zend_function tmp_func;1877 zend_class_entry tmp_class;1878 1879 zend_hash_init_ex(&eaccelerator_global_function_table, 100, NULL, NULL, 1, 0);1880 zend_hash_copy(&eaccelerator_global_function_table, CG(function_table), NULL,1881 &tmp_func, sizeof(zend_function));1882 1883 zend_hash_init_ex(&eaccelerator_global_class_table, 10, NULL, NULL, 1, 0);1884 zend_hash_copy(&eaccelerator_global_class_table, CG(class_table), NULL,1885 &tmp_class, sizeof(zend_class_entry));1886 1867 } 1887 1868 … … 2286 2267 php_register_info_logo(EACCELERATOR_LOGO_GUID, "image/gif", (unsigned char*)eaccelerator_logo, sizeof(eaccelerator_logo)); 2287 2268 2288 /*2289 * HOESH: on apache restart there was some2290 * problem with CG(class_table) in the latest PHP2291 * versions. Initialization moved to eaccelerator_compile_file()2292 * depends on the value below.2293 */2294 eaccelerator_global_function_table.nTableSize = 0;2295 2296 2269 return SUCCESS; 2297 2270 }