summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/064.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/064.phpt')
-rw-r--r--ext/mysqli/tests/064.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/mysqli/tests/064.phpt b/ext/mysqli/tests/064.phpt
new file mode 100644
index 000000000..1d6358e53
--- /dev/null
+++ b/ext/mysqli/tests/064.phpt
@@ -0,0 +1,21 @@
+--TEST--
+NULL binding
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+ include "connect.inc";
+
+ $mysql = new mysqli($host, $user, $passwd);
+
+ $stmt = $mysql->prepare("SELECT NULL FROM DUAL");
+ $stmt->execute();
+ $stmt->bind_result($foo);
+ $stmt->fetch();
+ $stmt->close();
+ $mysql->close();
+
+ var_dump($foo);
+?>
+--EXPECT--
+NULL