summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2003-02-14 19:49:35 +0000
committerGeorg Richter <georg@php.net>2003-02-14 19:49:35 +0000
commite8fd6662ae27dcb42bf022787d803847a9f7aa3b (patch)
tree0e532477969e15e64574d99b754bbe86329a4d50
parentc34fde086b9040dd2b9c1c5ab40b34fcf1ddcb1b (diff)
downloadphp-git-e8fd6662ae27dcb42bf022787d803847a9f7aa3b.tar.gz
test for bind_result with show
-rw-r--r--ext/mysqli/tests/045.phpt28
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt
new file mode 100644
index 0000000000..5ca0f2ae02
--- /dev/null
+++ b/ext/mysqli/tests/045.phpt
@@ -0,0 +1,28 @@
+--TEST--
+mysqli_bind_result (SHOW)
+--FILE--
+<?php
+ include "connect.inc";
+
+ /*** test mysqli_connect 127.0.0.1 ***/
+ $link = mysqli_connect("localhost", $user, $passwd);
+
+ $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
+
+ mysqli_execute($stmt);
+ mysqli_bind_result($stmt, &$c1, &$c2);
+ mysqli_fetch($stmt);
+ mysqli_stmt_close($stmt);
+ $test = array ($c1,$c2);
+
+ var_dump($test);
+
+ mysqli_close($link);
+?>
+--EXPECT--
+array(2) {
+ [0]=>
+ string(4) "port"
+ [1]=>
+ string(4) "3306"
+}