1--TEST-- 2PostgreSQL version 3--SKIPIF-- 4<?php include("skipif.inc"); ?> 5--FILE-- 6<?php 7// Get postgresql version for easier debugging. 8// Execute run-test.php with --keep-all to get version string in 00version.log or 00version.out 9include('config.inc'); 10 11$db = pg_connect($conn_str); 12var_dump(pg_version($db)); 13pg_close($db); 14 15// Get environment vars for debugging 16var_dump(serialize($_ENV)); 17 18echo "OK"; 19?> 20--EXPECTF-- 21array(13) { 22 ["client"]=> 23 string(%d) "%s" 24 ["protocol"]=> 25 int(%d) 26 ["server"]=> 27 string(%d) "%s" 28 ["server_encoding"]=> 29 string(%d) "%s" 30 ["client_encoding"]=> 31 string(%d) "%s" 32 ["is_superuser"]=> 33 string(%d) "%s" 34 ["session_authorization"]=> 35 string(%d) "%s" 36 ["DateStyle"]=> 37 string(%d) "%s" 38 ["IntervalStyle"]=> 39 string(%d) %s 40 ["TimeZone"]=> 41 string(%d) "%s" 42 ["integer_datetimes"]=> 43 string(%d) "%s" 44 ["standard_conforming_strings"]=> 45 string(%d) "%s" 46 ["application_name"]=> 47 string(%d) %s 48} 49string(%d) "%s" 50OK 51