From: Ulf Wendel Date: Fri, 9 Sep 2011 12:12:08 +0000 (+0000) Subject: Bug #55653 X-Git-Tag: php-5.3.9RC1~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ed1dc2fa9a6c0a283371bb24314a2cccaceddf6;p=php Bug #55653 --- 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