mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
|
--TEST--
|
||
|
non freed statement test
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "connect.inc";
|
||
|
|
||
|
/************************
|
||
|
* non freed stamement
|
||
|
************************/
|
||
|
$link = mysqli_connect("localhost", $user, $passwd);
|
||
|
|
||
|
$stmt = mysqli_prepare($link, "SELECT CURRENT_USER()");
|
||
|
mysqli_execute($stmt);
|
||
|
|
||
|
mysqli_close($link);
|
||
|
printf("Ok\n");
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Ok
|