xref: /PHP-8.2/ext/mysqli/tests/bug39457.phpt (revision b5a14e6c)
1--TEST--
2Bug #39457 (Multiple invoked OO connections never close)
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11    require_once("connect.inc");
12
13    $mysql = mysqli_init();
14    $mysql->connect($host, $user, $passwd, $db, $port, $socket);
15
16    $mysql->connect($host, $user, $passwd, $db, $port, $socket);
17
18    $mysql->close();
19    echo "OK\n";
20?>
21--EXPECT--
22OK
23