Changeset 166

Show
Ignore:
Timestamp:
02/20/06 00:54:12 (3 years ago)
Author:
hrak
Message:

Fixed static_members handling for php-5.0. Broke this while working on PHP-5.1 support. Lost in ifdef statements ;)

Files:

Legend:

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

    r165 r166  
     12006-02-20  Hans Rakers <hans at parse dot nl> 
     2 
     3        * Fixed static_members handling for php-5.0. Broke this while 
     4          working on PHP-5.1 support. Lost in ifdef statements ;) 
     5 
    162006-02-19  Hans Rakers <hans at parse dot nl> 
    27 
  • eaccelerator/trunk/ea_store.c

    r164 r166  
    811811                        if(zend_hash_quick_find(&parent->default_static_members, p->arKey, p->nKeyLength, p->h, (void**)&pprop) == SUCCESS) { 
    812812#  else 
    813                         if(zend_hash_quick_find(&parent->static_members, p->arKey, p->nKeyLength, p->h, (void**)&pprop) == SUCCESS) { 
     813                        if(zend_hash_quick_find(parent->static_members, p->arKey, p->nKeyLength, p->h, (void**)&pprop) == SUCCESS) { 
    814814#  endif 
    815815                                ea_debug_printf(EA_DEBUG, "[%d] store_static_member_access_check: SUCCESS looking up arKey\n",getpid()); 
     
    913913        } 
    914914        ea_debug_printf(EA_DEBUG, "[%d] store_class_entry: to->static_members(%x), to->default_static_members(%x)\n", getpid(), to->static_members, &to->default_static_members); 
     915#  elif defined(ZEND_ENGINE_2) && !defined(ZEND_ENGINE_2_1) 
     916        /* for php-5.0 */ 
     917        if(from->static_members != NULL) { 
     918                EACCELERATOR_ALIGN(EAG(mem)); 
     919                to->static_members = (HashTable *) EAG(mem); 
     920                EAG(mem) += sizeof(HashTable); 
     921                store_hash(to->static_members, from->static_members, (store_bucket_t) store_zval_ptr, (check_bucket_t) store_static_member_access_check, from); 
     922        }        
    915923#  else 
     924        /* for php < 5.0 */ 
    916925        if (from->static_members != NULL) { 
    917926                EACCELERATOR_ALIGN(EAG(mem));