PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/pgsql/tests/00version.phpt ('PostgreSQL version')

Script

1: <?php
2:
// Get postgresql version for easier debugging.
3: // Execute run-test.php with --keep-all to get version string in 00version.log or 00version.out
4:
include('config.inc');
5:
6:
$db pg_connect($conn_str);
7:
var_dump(pg_version($db));
8:
pg_close($db);
9:
10:
// Get environment vars for debugging
11:
var_dump(serialize($_ENV));
12:
13: echo 
"OK";
14:
?>
15:

Expected

array(13) {
  ["client"]=>
  string(%d) "%s"
  ["protocol"]=>
  int(%d)
  ["server"]=>
  string(%d) "%s"
  ["server_encoding"]=>
  string(%d) "%s"
  ["client_encoding"]=>
  string(%d) "%s"
  ["is_superuser"]=>
  string(%d) "%s"
  ["session_authorization"]=>
  string(%d) "%s"
  ["DateStyle"]=>
  string(%d) "%s"
  ["IntervalStyle"]=>
  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) "%a"
OK

Output

array(13) {
  ["client"]=>
  string(6) "8.4.20"
  ["protocol"]=>
  int(3)
  ["server"]=>
  string(6) "8.4.20"
  ["server_encoding"]=>
  string(4) "UTF8"
  ["client_encoding"]=>
  string(4) "UTF8"
  ["is_superuser"]=>
  string(2) "on"
  ["session_authorization"]=>
  string(8) "postgres"
  ["DateStyle"]=>
  string(8) "ISO, MDY"
  ["IntervalStyle"]=>
  string(8) "postgres"
  ["TimeZone"]=>
  string(11) "US/Michigan"
  ["integer_datetimes"]=>
  string(2) "on"
  ["standard_conforming_strings"]=>
  string(3) "off"
  ["application_name"]=>
  NULL
}
string(3558) "a:63:{s:21:"PDO_FIREBIRD_TEST_DSN";s:42:"firebird:dbname=/var/php_gcov/firebird.fdb";s:7:"MANPATH";s:40:"/opt/rh/devtoolset-7/root/usr/share/man:";s:15:"TEST_PHP_SRCDIR";s:22:"/var/php_gcov/PHP_HEAD";s:21:"PDO_MYSQL_TEST_SOCKET";s:25:"/var/lib/mysql/mysql.sock";s:5:"SHELL";s:9:"/bin/bash";s:11:"LTP_GENHTML";s:162:"genhtml --html-prolog /local/Web/sites/php-gcov-web/cron/./lcov_prolog.inc --html-epilog /local/Web/sites/php-gcov-web/cron/./lcov_epilog.inc --html-extension php";s:8:"NLS_LANG";s:25:"AMERICAN_AMERICA.AL32UTF8";s:22:"TEST_PHPDBG_EXECUTABLE";s:41:"/var/php_gcov/PHP_HEAD/sapi/phpdbg/phpdbg";s:13:"ODBC_TEST_DSN";s:5:"phpqa";s:8:"PERL5LIB";s:149:"/opt/rh/devtoolset-7/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-7/root/usr/lib/perl5:/opt/rh/devtoolset-7/root//usr/share/perl5/vendor_perl";s:18:"PDO_MYSQL_TEST_DSN";s:55:"mysql:unix_socket=/var/lib/mysql/mysql.sock;dbname=test";s:13:"VALGRIND_OPTS";s:58:"--suppressions=/local/Web/sites/php-gcov-web/valgrind.supp";s:17:"PDO_OCI_TEST_USER";s:6:"system";s:19:"PDO_MYSQL_TEST_USER";s:5:"phpqa";s:14:"ODBC_TEST_USER";s:8:"odbcUser";s:22:"PDO_FIREBIRD_TEST_USER";s:6:"SYSDBA";s:17:"PDO_OCI_TEST_PASS";s:6:"oracle";s:6:"X_SCLS";s:13:"devtoolset-7 ";s:17:"MYSQL_TEST_PASSWD";s:4:"gcov";s:6:"LC_ALL";s:1:"C";s:7:"PCP_DIR";s:25:"/opt/rh/devtoolset-7/root";s:4:"USER";s:7:"nlopess";s:4:"TEMP";s:4:"/tmp";s:15:"LD_LIBRARY_PATH";s:225:"/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib:/opt/rh/devtoolset-7/root/usr/lib64/dyninst:/opt/rh/devtoolset-7/root/usr/lib/dyninst:/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib";s:15:"SCRIPT_FILENAME";s:52:"/var/php_gcov/PHP_HEAD/ext/pgsql/tests/00version.php";s:17:"MYSQL_TEST_SOCKET";s:25:"/var/lib/mysql/mysql.sock";s:10:"ORACLE_SID";s:2:"XE";s:9:"MAKELEVEL";s:1:"1";s:16:"PDO_OCI_TEST_DSN";s:46:"oci:dbname=//localhost/XE;charset=WE8MSWIN1252";s:14:"PHP_AUTOHEADER";s:13:"autoheader268";s:4:"PATH";s:100:"/opt/rh/devtoolset-7/root/usr/bin:/u01/app/oracle/product/11.2.0/xe/bin:/usr/local/bin:/bin:/usr/bin";s:14:"CCACHE_DISABLE";s:1:"1";s:22:"PDO_FIREBIRD_TEST_PASS";s:9:"masterkey";s:14:"USE_ZEND_ALLOC";s:1:"0";s:1:"_";s:23:"/usr/local/bin/valgrind";s:3:"PWD";s:22:"/var/php_gcov/PHP_HEAD";s:18:"PDO_ODBC_TEST_PASS";s:4:"odbc";s:17:"PDO_ODBC_TEST_DSN";s:10:"odbc:phpqa";s:13:"TEST_PHP_ARGS";s:16:"-q --keep-all -m";s:4:"LANG";s:11:"en_US.UTF-8";s:19:"TEST_PHP_EXECUTABLE";s:35:"/var/php_gcov/PHP_HEAD/sapi/cli/php";s:15:"REDIRECT_STATUS";s:1:"1";s:15:"PATH_TRANSLATED";s:52:"/var/php_gcov/PHP_HEAD/ext/pgsql/tests/00version.php";s:9:"SNI_TESTS";s:1:"1";s:4:"HOME";s:13:"/home/nlopess";s:5:"SHLVL";s:1:"7";s:13:"MYSQL_TEST_DB";s:4:"test";s:18:"PDO_ODBC_TEST_USER";s:8:"odbcUser";s:15:"MYSQL_TEST_USER";s:5:"phpqa";s:7:"LOGNAME";s:7:"nlopess";s:10:"PYTHONPATH";s:117:"/opt/rh/devtoolset-7/root/usr/lib64/python2.6/site-packages:/opt/rh/devtoolset-7/root/usr/lib/python2.6/site-packages";s:19:"PDO_MYSQL_TEST_PASS";s:4:"gcov";s:14:"ODBC_TEST_PASS";s:4:"odbc";s:18:"REPORT_EXIT_STATUS";s:1:"0";s:27:"PHP_CURL_HTTP_REMOTE_SERVER";s:29:"http://gcov.php.net/responder";s:8:"INFOPATH";s:40:"/opt/rh/devtoolset-7/root/usr/share/info";s:2:"CC";s:2:"cc";s:18:"PDO_PGSQL_TEST_DSN";s:17:"pgsql:dbname=test";s:12:"PHP_AUTOCONF";s:11:"autoconf268";s:11:"ORACLE_HOME";s:33:"/u01/app/oracle/product/11.2.0/xe";s:14:"REQUEST_METHOD";s:3:"GET";s:24:"ZEND_DONT_UNLOAD_MODULES";s:1:"1";s:10:"LD_PRELOAD";s:111:"/usr/local/lib/valgrind/vgpreload_core-amd64-linux.so:/usr/local/lib/valgrind/vgpreload_memcheck-amd64-linux.so";}"
OK

Diff

027+   NULL
027-   string(%d) %s

 

Generated at Wed, 17 Oct 2018 05:34:51 +0000 (4 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.