summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/07optional.phpt
blob: 9fa6f1633193de864985dead12c695fce74dcedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
PostgreSQL optional functions
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
// optional functions

include('config.inc');

$db = pg_connect($conn_str);
$enc = pg_client_encoding($db);

pg_set_client_encoding($db, $enc);

if (function_exists('pg_set_error_verbosity')) {
	pg_set_error_verbosity(PGSQL_ERRORS_TERSE);
	pg_set_error_verbosity(PGSQL_ERRORS_DEFAULT);
	pg_set_error_verbosity(PGSQL_ERRORS_VERBOSE);
}
echo "OK";
?>
--EXPECT--
OK