summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug75448.phpt
blob: 929b152769cdcdf2c865df0845acd6510ef5552a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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