Annotation of embedaddon/php/ext/mysqli/tests/bug64726.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #63398 (Segfault when calling fetch_object on a use_result and DB pointer has closed)
! 3: --SKIPIF--
! 4: <?php
! 5: require_once('skipif.inc');
! 6: require_once("connect.inc");
! 7: if (!$IS_MYSQLND) {
! 8: die("skip mysqlnd only test");
! 9: }
! 10: require_once('skipifconnectfailure.inc');
! 11: ?>
! 12: --FILE--
! 13: <?php
! 14: require '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();
! 19: var_dump($result->fetch_object());
! 20: ?>
! 21: --EXPECTF--
! 22: Warning: mysqli_result::fetch_object(): Error while reading a row in %sbug64726.php on line %d
! 23: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>