mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
25 lines
486 B
PHP
25 lines
486 B
PHP
--TEST--
|
|
Bug #73949 (leak in mysqli_fetch_object)
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifemb.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once("connect.inc");
|
|
|
|
class cc{
|
|
function __construct($c=null){
|
|
}
|
|
};
|
|
$i=mysqli_connect('p:'.$host, $user, $passwd, $db);
|
|
$res=mysqli_query($i, "SHOW STATUS LIKE 'Connections'");
|
|
$t=array(new stdClass);
|
|
while($db= mysqli_fetch_object($res,'cc',$t)){}
|
|
print "done!";
|
|
?>
|
|
--EXPECT--
|
|
done!
|