From fd6f7b83411819361d89fa53247e6f1cb2683cd4 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 16 Apr 2016 16:11:22 +0200 Subject: [PATCH] Add test for bug #72028 --- ext/pgsql/tests/bug72028.phpt | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 ext/pgsql/tests/bug72028.phpt diff --git a/ext/pgsql/tests/bug72028.phpt b/ext/pgsql/tests/bug72028.phpt new file mode 100644 index 0000000000..217a03abc7 --- /dev/null +++ b/ext/pgsql/tests/bug72028.phpt @@ -0,0 +1,52 @@ +--TEST-- +Bug #72028 pg_query_params(): NULL converts to empty string +--SKIPIF-- + +--FILE-- + +==DONE== +--EXPECT-- +array(2) { + ["value"]=> + NULL + ["details"]=> + string(38) "insert before looping with a reference" +} +array(2) { + ["value"]=> + NULL + ["details"]=> + string(37) "insert after looping with a reference" +} +==DONE== -- 2.40.0