mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6'
This commit is contained in:
commit
9420a2a5b0
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ static HashTable *spl_object_storage_get_gc(zval *obj, zval **table, int *n) /*
|
|||
spl_SplObjectStorage *intern = Z_SPLOBJSTORAGE_P(obj);
|
||||
spl_SplObjectStorageElement *element;
|
||||
|
||||
if (intern->storage.nNumOfElements > intern->gcdata_num) {
|
||||
if (intern->storage.nNumOfElements * 2 > intern->gcdata_num) {
|
||||
intern->gcdata_num = intern->storage.nNumOfElements * 2;
|
||||
intern->gcdata = (zval*)erealloc(intern->gcdata, sizeof(zval) * intern->gcdata_num);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue