mirror of
https://github.com/php/php-src.git
synced 2025-01-24 20:53:37 +08:00
929e3851f2
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
22 lines
351 B
PHP
22 lines
351 B
PHP
--TEST--
|
|
NULL binding
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
$mysql = new mysqli($host, $user, $passwd);
|
|
|
|
$stmt = new mysqli_stmt($mysql, "SELECT NULL FROM DUAL");
|
|
$stmt->execute();
|
|
$stmt->bind_result($foo);
|
|
$stmt->fetch();
|
|
$stmt->close();
|
|
$mysql->close();
|
|
|
|
var_dump($foo);
|
|
?>
|
|
--EXPECT--
|
|
NULL
|