summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-12-31 17:42:27 +0000
committerMarcus Boerger <helly@php.net>2005-12-31 17:42:27 +0000
commit08bccb4a723e9caee7f84362caea7ab311f44be4 (patch)
treec8b4d30a1394e3bbe5e0b2e3d1371c5e06c0ec91
parent57413e1b284fdeaac81945c8e8fb109ea1533040 (diff)
downloadphp-git-08bccb4a723e9caee7f84362caea7ab311f44be4.tar.gz
- Fix tests
-rw-r--r--ext/pgsql/tests/09notice.phpt1
-rwxr-xr-xext/pgsql/tests/80_bug32223.phpt1
-rwxr-xr-xext/pgsql/tests/80_bug32223b.phpt6
3 files changed, 5 insertions, 3 deletions
diff --git a/ext/pgsql/tests/09notice.phpt b/ext/pgsql/tests/09notice.phpt
index ccb0c80823..b7611b98c1 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_bug32223.phpt b/ext/pgsql/tests/80_bug32223.phpt
index a605fcc20b..b201d320ce 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 62b374d620..98e4723889 100755
--- a/ext/pgsql/tests/80_bug32223b.phpt
+++ b/ext/pgsql/tests/80_bug32223b.phpt
@@ -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 '