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