1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/mysqli/tests/bug75448.phpt

23 lines
477 B
PHP

--TEST--
mysqli_prepare() called on a closed connection should return FALSE (bug #75448)
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once 'skipifconnectfailure.inc';
?>
--FILE--
<?php
require_once 'connect.inc';
$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
mysqli_close($link);
try {
mysqli_prepare($link, 'SELECT VERSION()');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
mysqli object is already closed