xref: /php-src/ext/mysqli/tests/bug39457.phpt (revision a21edc52)
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