From: Michael Wallner Date: Wed, 3 May 2023 12:17:21 +0000 (+0200) Subject: test #47 X-Git-Tag: v2.2.2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9ff77f91387b319a8acc6ba2e4e625df983a07f3;p=m6w6%2Fext-pq test #47 --- 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===