summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-14 11:31:12 +0800
committerXinchen Hui <laruence@php.net>2015-03-14 11:31:12 +0800
commit5b87d5204108f78d433880b12b941ba8fba10e62 (patch)
treea547a9b83443bb4ca9f49998f3645ba1eeb44012
parented59370f0a8a2c1ea8164afcde827c4fba74693d (diff)
downloadphp-git-5b87d5204108f78d433880b12b941ba8fba10e62.tar.gz
Fixed typo
-rw-r--r--ext/spl/spl_observer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c
index 733257f817..18c875b50d 100644
--- a/ext/spl/spl_observer.c
+++ b/ext/spl/spl_observer.c
@@ -373,7 +373,7 @@ static HashTable *spl_object_storage_get_gc(zval *obj, zval ***table, int *n TSR
spl_SplObjectStorageElement *element;
HashPosition pos;
- 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);
}