]> granicus.if.org Git - php/commitdiff
- Fix tests
authorMarcus Boerger <helly@php.net>
Sat, 31 Dec 2005 17:42:27 +0000 (17:42 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 31 Dec 2005 17:42:27 +0000 (17:42 +0000)
ext/pgsql/tests/09notice.phpt
ext/pgsql/tests/80_bug32223.phpt
ext/pgsql/tests/80_bug32223b.phpt

index ccb0c808230e1a2020e262816ccfb9c9318c5657..b7611b98c1145c040dce54be44dcb771925d8c60 100644 (file)
@@ -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;");
 
index a605fcc20b2b0ad291bce9df5bd0a724fcb92bb3..b201d320cebd7e728d2ff422644aed7c6b2e46f8 100755 (executable)
@@ -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 '
index 62b374d620991af326986beb8e8ec54159cf611d..98e472388975a03f034936689214af9bcce0691d 100755 (executable)
@@ -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 '