diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-02-16 16:03:27 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-02-16 16:03:27 +0000 |
commit | ce9dfedc69ab6d45973d38758e253ff64ec87d69 (patch) | |
tree | 00c91b587bd11601fce136e77a1c03ff5edfab5c /ext/mysqli/mysqli.c | |
parent | 2108714a2b78fa9ef5410c4933534867b940f19d (diff) | |
download | php-git-ce9dfedc69ab6d45973d38758e253ff64ec87d69.tar.gz |
Fixed bug #36420 (segfault when access result->num_rows after calling
result->close())
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r-- | ext/mysqli/mysqli.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 0d1b34db9e..47539b717c 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -198,6 +198,11 @@ zval *mysqli_read_property(zval *object, zval *member, int type TSRMLS_DC) ret = FAILURE; obj = (mysqli_object *)zend_objects_get_address(object TSRMLS_CC); + /* object was already destroyed */ + if (!obj->ptr) { + retval = EG(uninitialized_zval_ptr); + return(retval); + } if (member->type != IS_STRING) { tmp_member = *member; |