From 8ed1dc2fa9a6c0a283371bb24314a2cccaceddf6 Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Fri, 9 Sep 2011 12:12:08 +0000 Subject: [PATCH] Bug #55653 --- ext/mysqli/tests/bug55653.phpt | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ext/mysqli/tests/bug55653.phpt diff --git a/ext/mysqli/tests/bug55653.phpt b/ext/mysqli/tests/bug55653.phpt new file mode 100644 index 0000000000..f9cd297eba --- /dev/null +++ b/ext/mysqli/tests/bug55653.phpt @@ -0,0 +1,36 @@ +--TEST-- +Bug #55653 PS crash with libmysql when binding same variable as param and out +--SKIPIF-- + +--FILE-- +stmt_init())) + printf("[002] [%d] %s\n", $link->errno, $link->error); + + if (!($stmt->prepare("SELECT ?")) || + !($stmt->bind_param("s", $in_and_out)) || + !($stmt->execute()) || + !($stmt->bind_result($in_and_out))) + printf("[003] [%d] %s\n", $stmt->errno, $stmt->error); + + if (!$stmt->fetch()) + printf("[004] [%d] %s\n", $stmt->errno, $stmt->error); + + if ("a" !== $in_and_out) + printf("[005] Wrong result: '%s'\n", $in_and_out); + + echo "done!"; +?> +--EXPECT-- +done! \ No newline at end of file -- 2.50.1