Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b938a81ced
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (16 sloc) 0.382 kb
--TEST--
Postgresql: connection error catching
--FILE--
<?php
$DSN[] = "postgresql://user:pass@127.0.0.1:55555/test";
require_once dirname(__FILE__) . '/../init.php';
function main(&$DB)
{
}
?>
--SKIPIF--
<?php
if (!is_callable('pg_connect')) print('skip pgsql extension not loaded');
?>
--EXPECT--
Error: 'pg_connect("host=127.0.0.1 port=55555 dbname=test user=user") error'
Jump to Line
Something went wrong with that request. Please try again.