xref: /PHP-7.4/ext/mysqli/tests/064.phpt (revision e3e67b72)
1--TEST--
2NULL binding
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10    require_once("connect.inc");
11
12    $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
13
14    $stmt = new mysqli_stmt($mysql, "SELECT NULL FROM DUAL");
15    $stmt->execute();
16    $stmt->bind_result($foo);
17    $stmt->fetch();
18    $stmt->close();
19    $mysql->close();
20
21    var_dump($foo);
22?>
23--EXPECT--
24NULL
25