summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
committerMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
commit0a36161e13484a99ccf69bb38f206462d27cc6d6 (patch)
treed5107db4b7369603ac7c753829e8972ee74949f7 /ext/pgsql/tests
parentce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 (diff)
downloadphp-0a36161e13484a99ccf69bb38f206462d27cc6d6.tar.gz
Imported Upstream version 5.1.2upstream/5.1.2
Diffstat (limited to 'ext/pgsql/tests')
-rw-r--r--ext/pgsql/tests/09notice.phpt1
-rwxr-xr-xext/pgsql/tests/80_bug27597.phpt2
-rwxr-xr-xext/pgsql/tests/80_bug32223.phpt1
-rwxr-xr-xext/pgsql/tests/80_bug32223b.phpt8
4 files changed, 7 insertions, 5 deletions
diff --git a/ext/pgsql/tests/09notice.phpt b/ext/pgsql/tests/09notice.phpt
index ccb0c8082..b7611b98c 100644
--- a/ext/pgsql/tests/09notice.phpt
+++ b/ext/pgsql/tests/09notice.phpt
@@ -10,6 +10,7 @@ pgsql.ignore_notices=0
include 'config.inc';
$db = pg_connect($conn_str);
+pg_exec($db, "SET LC_MESSAGES='C';");
pg_query($db, "BEGIN;");
pg_query($db, "BEGIN;");
diff --git a/ext/pgsql/tests/80_bug27597.phpt b/ext/pgsql/tests/80_bug27597.phpt
index aa04a4a22..b27d6e94f 100755
--- a/ext/pgsql/tests/80_bug27597.phpt
+++ b/ext/pgsql/tests/80_bug27597.phpt
@@ -7,7 +7,7 @@ require_once('skipif.inc');
--FILE--
<?php
-require_once('config.inc');
+require_once(dirname(__FILE__) . '/config.inc');
$dbh = @pg_connect($conn_str);
if (!$dbh) {
diff --git a/ext/pgsql/tests/80_bug32223.phpt b/ext/pgsql/tests/80_bug32223.phpt
index a605fcc20..b201d320c 100755
--- a/ext/pgsql/tests/80_bug32223.phpt
+++ b/ext/pgsql/tests/80_bug32223.phpt
@@ -22,6 +22,7 @@ $dbh = @pg_connect($conn_str);
if (!$dbh) {
die ("Could not connect to the server");
}
+pg_exec($dbh, "SET LC_MESSAGES='C';");
//@pg_query($dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
$res = pg_query($dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '
diff --git a/ext/pgsql/tests/80_bug32223b.phpt b/ext/pgsql/tests/80_bug32223b.phpt
index 010915e82..98e472388 100755
--- a/ext/pgsql/tests/80_bug32223b.phpt
+++ b/ext/pgsql/tests/80_bug32223b.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #32223 (weird behaviour of pg_last_notice using notice)
+Bug #32223 (weird behaviour of pg_last_notice using define)
--SKIPIF--
<?php
require_once('skipif.inc');
@@ -16,13 +16,13 @@ if (!$res) die('skip PLPGSQL not available');
--FILE--
<?php
-require('config.inc');
+require_once('config.inc');
-define ('dbh', pg_connect($conn_str));
-//$dbh = @pg_connect($conn_str);
+define('dbh', pg_connect($conn_str));
if (!dbh) {
die ("Could not connect to the server");
}
+pg_exec(dbh, "SET LC_MESSAGES='C';");
//@pg_query(dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
$res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '