|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2013, PHP 5.3.26
+- MySQLi:
+ . Fixed bug #64726 (Segfault when calling fetch_object on a use_result and DB
+ pointer has closed). (Laruence)
+
?? ??? 2013, PHP 5.3.25
### ADD ENTRIES ABOVE FOR 5.3.26. 5.3.25 NEWS WILL BE UPDATED BY RM ON MERGE ###
#endif
- if (into_object && Z_TYPE_P(return_value) != IS_NULL) {
+ if (into_object && Z_TYPE_P(return_value) == IS_ARRAY) {
zval dataset = *return_value;
zend_fcall_info fci;
zend_fcall_info_cache fcc;
$result = $db->query('SELECT 1', MYSQLI_USE_RESULT);
$db->close();
-var_dump($result->fetch_array());
+var_dump($result->fetch_object());
?>
--EXPECTF--
-Warning: mysqli_result::fetch_array(): Error while reading a row in %sbug64726.php on line %d
+Warning: mysqli_result::fetch_object(): Error while reading a row in %sbug64726.php on line %d
bool(false)