1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00

Fixed bug #36420 (segfault when access result->num_rows after calling

result->close())
This commit is contained in:
Ilia Alshanetsky
2006-02-16 16:03:27 +00:00
parent 2108714a2b
commit ce9dfedc69
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -22,6 +22,8 @@ PHP NEWS
- Added ReflectionClass::newInstanceArgs($args). (Marcus)
- Added imap_savebody() that allows message body to be written to a file.
(Mike)
- Fixed bug #36420 (segfault when access result->num_rows after calling
result->close()). (Ilia)
- Fixed bug #36403 (oci_execute() no longer supports OCI_DESCRIBE_ONLY).
(Tony)
- Fixed bug #36400 (Custom 5xx error does not return correct HTTP response
+5
View File
@@ -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;