Fixed invalid read in ext/pdo/tests/pdo_025.phpt(pgsql)

This commit is contained in:
Xinchen Hui 2014-05-16 19:11:38 +08:00
parent 6859890091
commit d85e39cf4a

View file

@ -79,7 +79,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
zend_uint i;
/* Free object properties but don't free object their selves */
for (i = 1; i < objects->top ; i++) {
for (i = objects->top - 1; i > 0 ; i--) {
zend_object *obj = objects->object_buckets[i];
if (IS_OBJ_VALID(obj)) {