Changeset 287

Show
Ignore:
Timestamp:
01/29/07 23:33:40 (1 year ago)
Author:
bart
Message:

* Removed some obsolete code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r286 r287  
     12007-01-29  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Removed some obsolete code 
     4 
    152007-01-04  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    26 
  • eaccelerator/trunk/eaccelerator.c

    r286 r287  
    9292static int eaccelerator_is_extension      = 0; 
    9393zend_extension* ZendOptimizer = NULL; 
    94  
    95 static HashTable eaccelerator_global_function_table; 
    96 static HashTable eaccelerator_global_class_table; 
    9794 
    9895int binary_eaccelerator_version[2]; 
     
    18681865        if (eaccelerator_mm_instance == NULL) { 
    18691866                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)); 
    18861867        } 
    18871868 
     
    22862267  php_register_info_logo(EACCELERATOR_LOGO_GUID,    "image/gif",  (unsigned char*)eaccelerator_logo, sizeof(eaccelerator_logo)); 
    22872268 
    2288   /* 
    2289    * HOESH: on apache restart there was some 
    2290    * problem with CG(class_table) in the latest PHP 
    2291    * versions. Initialization moved to eaccelerator_compile_file() 
    2292    * depends on the value below. 
    2293    */ 
    2294   eaccelerator_global_function_table.nTableSize = 0; 
    2295  
    22962269  return SUCCESS; 
    22972270}