mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
5bf6aedae4
Closes GH-5058
22 lines
512 B
PHP
22 lines
512 B
PHP
--TEST--
|
|
mysqli_prepare() called on a closed connection should return FALSE (bug #75448)
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifemb.inc');
|
|
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
|