# Patch by Greg
@ -472,6 +472,10 @@ zval *zend_std_read_dimension(zval *object, zval *offset, int type TSRMLS_DC)
}
return 0;
if (EG(exception)) {
zval_ptr_dtor(&retval);
/* Undo PZVAL_LOCK() */
retval->refcount--;