diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-02-16 16:05:02 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-02-16 16:05:02 +0000 |
commit | 2b24ddb6a3e9dcaf97ddd946c9c2c2fd3208f20a (patch) | |
tree | 6cfe7ce78dc3e601ce8e879f48e073f2fd469d32 /ext/mysqli/mysqli.c | |
parent | 77b7b56ab08205ed72eb62780f06de5766078e48 (diff) | |
download | php-git-2b24ddb6a3e9dcaf97ddd946c9c2c2fd3208f20a.tar.gz |
MFB51: 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 05b52f3758..2ba9c8ebfd 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -200,6 +200,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; |