mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
22 lines
575 B
PHP
22 lines
575 B
PHP
--TEST--
|
|
Bug #63398 (Segfault when calling fetch_object on a use_result and DB pointer has closed)
|
|
--EXTENSIONS--
|
|
mysqli
|
|
--SKIPIF--
|
|
<?php
|
|
require_once 'skipifconnectfailure.inc';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require 'connect.inc';
|
|
$db = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
mysqli_report(MYSQLI_REPORT_ERROR);
|
|
$result = $db->query('SELECT 1', MYSQLI_USE_RESULT);
|
|
$db->close();
|
|
var_dump($result->fetch_object());
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mysqli_result::fetch_object(): (HY000/2014): Commands out of sync; you can't run this command now in %s on line %d
|
|
bool(false)
|