Show
Ignore:
Timestamp:
06/20/08 11:20:17 (4 months ago)
Author:
bart
Message:

First stab at php 5.3 support. Only fixes the script cache. phpMyAdmin seems to work with these changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/eaccelerator.c

    r347 r348  
    11031103} 
    11041104 
     1105/* copy of zend_class_add_ref, the linker isn't able to link to it any more 
     1106 * in php 5.3 
     1107 * TODO: see if we can steal the pointer 
     1108 */ 
     1109void ea_class_add_ref(zend_class_entry **ce) 
     1110{ 
     1111            (*ce)->refcount++; 
     1112} 
     1113 
    11051114/* 
    11061115 * Intercept compilation of PHP file.  If we already have the file in 
     
    12241233 
    12251234    zend_hash_init_ex(&tmp_class_table, 10, NULL, ZEND_CLASS_DTOR, 1, 0); 
    1226                 zend_hash_copy(&tmp_class_table, &eaccelerator_global_class_table, (copy_ctor_func_t)zend_class_add_ref, &tmp_class, sizeof(zend_class_entry *)); 
     1235                zend_hash_copy(&tmp_class_table, &eaccelerator_global_class_table, (copy_ctor_func_t)ea_class_add_ref, &tmp_class, sizeof(zend_class_entry *)); 
    12271236 
    12281237    orig_class_table = CG(class_table);;