From 9ff77f91387b319a8acc6ba2e4e625df983a07f3 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 3 May 2023 14:17:21 +0200 Subject: [PATCH] test #47 --- tests/gh-issue047_jsonb.phpt | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/gh-issue047_jsonb.phpt diff --git a/tests/gh-issue047_jsonb.phpt b/tests/gh-issue047_jsonb.phpt new file mode 100644 index 0000000..1f049d4 --- /dev/null +++ b/tests/gh-issue047_jsonb.phpt @@ -0,0 +1,40 @@ +--TEST-- +json conv broken since 2.2.1 +--SKIPIF-- + +--INI-- +date.timezone=UTC +--FILE-- +defaultFetchType = \pq\Result::FETCH_ASSOC; + +$q = <<exec($q); + +var_dump($r->fetchAll()); +?> +===DONE=== +--EXPECT-- +Test +array(2) { + [0]=> + array(1) { + ["jsonb"]=> + string(4) "text" + } + [1]=> + array(1) { + ["jsonb"]=> + int(0) + } +} +===DONE=== -- 2.30.2