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