xref: /PHP-7.2/ext/pgsql/tests/07optional.phpt (revision e2b87e62)
1--TEST--
2PostgreSQL optional functions
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7// optional functions
8
9include('config.inc');
10
11$db = pg_connect($conn_str);
12$enc = pg_client_encoding($db);
13
14pg_set_client_encoding($db, $enc);
15
16if (function_exists('pg_set_error_verbosity')) {
17	pg_set_error_verbosity(PGSQL_ERRORS_TERSE);
18	pg_set_error_verbosity(PGSQL_ERRORS_DEFAULT);
19	pg_set_error_verbosity(PGSQL_ERRORS_VERBOSE);
20}
21echo "OK";
22?>
23--EXPECT--
24OK
25