summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/050.phpt
blob: c51c7bc1d23a9e3d4ba64954e5d0426917cd15a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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