mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
22 lines
402 B
PHP
22 lines
402 B
PHP
--TEST--
|
|
Bug #39457 (Multiple invoked OO connections never close)
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once("connect.inc");
|
|
|
|
$mysql = mysqli_init();
|
|
$mysql->connect($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$mysql->connect($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$mysql->close();
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|