1--TEST-- 2Bug #63398 (Memleak when calling fetch_object on a use_result and DB pointer has closed) 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once("connect.inc"); 7if (!$IS_MYSQLND) { 8 die("skip mysqlnd only test"); 9} 10require_once('skipifconnectfailure.inc'); 11?> 12--FILE-- 13<?php 14require 'connect.inc'; 15$db = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 16 17$result = $db->query('SELECT 1', MYSQLI_USE_RESULT); 18$db->close(); 19var_dump($result->fetch_object()); 20?> 21--EXPECTF-- 22Warning: mysqli_result::fetch_object(): Error while reading a row in %sbug64726.php on line %d 23bool(false) 24