mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
e2b87e6230
(PHP pg_set_error_verbosity) New function to set PostgreSQL error verbosity (PHP pg_copy_from) Use non-deprecated API if it is available (PHP pg_copy_to) Use non-deprecated API if it is available
25 lines
460 B
PHP
25 lines
460 B
PHP
--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
|