Changeset 352

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

optimize.c: In php 5.3 this field is const
ea_restore.c: strings comparison can't be done like that, stupid me

Files:

Legend:

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

    r350 r352  
    352352    case IS_OBJECT: 
    353353    case IS_STRING: 
    354         if (Z_STRVAL_P(zv) == NULL || Z_STRVAL_P(zv) == "" || Z_STRLEN_P(zv) == 0) { 
     354        if (Z_STRVAL_P(zv) == NULL || Z_STRLEN_P(zv) == 0) { 
    355355            Z_STRLEN_P(zv) = 0; 
    356356            Z_STRVAL_P(zv) = empty_string; 
  • eaccelerator/trunk/optimize.c

    r351 r352  
    15261526    zend_module_entry *m = (zend_module_entry*)p->pData; 
    15271527    if (m->type == MODULE_PERSISTENT) { 
     1528#ifdef ZEND_ENGINE_2_3 
     1529      const zend_function_entry* f = m->functions; 
     1530#else 
    15281531      zend_function_entry* f = m->functions; 
     1532#endif 
    15291533      if (f != NULL) { 
    15301534        while (f->fname) {