source: src/router/php7/ext/mysqli/tests/bug73949.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 490 bytes
Line 
1--TEST--
2Bug #73949 (leak in mysqli_fetch_object)
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifemb.inc');
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11require_once("connect.inc");
12
13class cc{
14    function __construct($c=null){
15    }   
16};
17$i=mysqli_connect('p:'.$host, $user, $passwd, $db);
18$res=mysqli_query($i, "SHOW STATUS LIKE 'Connections'");
19$t=array(new stdClass);
20while($db= mysqli_fetch_object($res,'cc',$t)){}
21print "done!";
22?>
23--EXPECTF--
24done!
Note: See TracBrowser for help on using the repository browser.