diff options
| author | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-15 14:27:33 +0900 |
|---|---|---|
| committer | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-15 14:27:33 +0900 |
| commit | c58329fccc8bb521251dea7f52e991783b44d3da (patch) | |
| tree | b38a6bec56afaa9099716348cdfbdb478ab2feef /ext/pgsql/tests/00version.phpt | |
| parent | d0924c2500f06129ac2b66bb022be4dcc1f0bb7e (diff) | |
| download | php-git-c58329fccc8bb521251dea7f52e991783b44d3da.tar.gz | |
Always initialize pg_version() result array elements to prevent failed test with older postgresql servers. Add missing client_encoding element.
Diffstat (limited to 'ext/pgsql/tests/00version.phpt')
| -rw-r--r-- | ext/pgsql/tests/00version.phpt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/pgsql/tests/00version.phpt b/ext/pgsql/tests/00version.phpt index ea070093d4..e4e442d018 100644 --- a/ext/pgsql/tests/00version.phpt +++ b/ext/pgsql/tests/00version.phpt @@ -18,7 +18,7 @@ var_dump(serialize($_ENV)); echo "OK"; ?> --EXPECTF-- -array(12) { +array(13) { ["client"]=> string(%d) "%s" ["protocol"]=> @@ -27,8 +27,8 @@ array(12) { string(%d) "%s" ["server_encoding"]=> string(%d) "%s" - ["application_name"]=> - string(0) "" + ["client_encoding"]=> + string(%d) "%s" ["is_superuser"]=> string(%d) "%s" ["session_authorization"]=> @@ -36,13 +36,15 @@ array(12) { ["DateStyle"]=> string(%d) "%s" ["IntervalStyle"]=> - string(%d) "%s" + string(%d) %s ["TimeZone"]=> string(%d) "%s" ["integer_datetimes"]=> string(%d) "%s" ["standard_conforming_strings"]=> string(%d) "%s" + ["application_name"]=> + string(%d) %s } string(%d) "%s" OK |
