Changeset 1494


Ignore:
Timestamp:
2014-05-30T16:18:59+02:00 (3 months ago)
Author:
moo
Message:

fix segv for empty hash table on <=PHP_5_3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/hashtable.m4

    r1474 r1494  
    169169        } 
    170170        ') 
    171         RELOCATE(Bucket, pListHead) 
    172         RELOCATE(Bucket, pListTail) 
     171        if (SRC(`nNumOfElements')) { 
     172            RELOCATE(Bucket, pListHead) 
     173            RELOCATE(Bucket, pListTail) 
     174        } 
    173175        RELOCATE(Bucket *, arBuckets) 
    174176#ifdef ZEND_ENGINE_2_4 
Note: See TracChangeset for help on using the changeset viewer.