mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
b580bc3875
UPGRADING. sed-ed the tests to change the usage to the real function name.
25 lines
465 B
PHP
25 lines
465 B
PHP
--TEST--
|
|
non freed statement test
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once("connect.inc");
|
|
|
|
/************************
|
|
* non freed stamement
|
|
************************/
|
|
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$stmt = mysqli_prepare($link, "SELECT CURRENT_USER()");
|
|
mysqli_stmt_execute($stmt);
|
|
|
|
mysqli_close($link);
|
|
printf("Ok\n");
|
|
?>
|
|
--EXPECT--
|
|
Ok
|