Skip to content

Commit 96bb3b8

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
2 parents 669c710 + 5b87d52 commit 96bb3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/spl_observer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ static HashTable *spl_object_storage_get_gc(zval *obj, zval ***table, int *n TSR
374374
spl_SplObjectStorageElement *element;
375375
HashPosition pos;
376376

377-
if (intern->storage.nNumOfElements > intern->gcdata_num) {
377+
if (intern->storage.nNumOfElements * 2 > intern->gcdata_num) {
378378
intern->gcdata_num = intern->storage.nNumOfElements * 2;
379379
intern->gcdata = (zval**)erealloc(intern->gcdata, sizeof(zval*) * intern->gcdata_num);
380380
}

0 commit comments

Comments
 (0)