Skip to content

Commit 8479546

Browse files
committed
- MFH Fix tests
1 parent 90c6bfd commit 8479546

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

ext/pdo_pgsql/tests/bug_33876.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
1313
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
1414
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
1515

16+
$db->exec("SET LC_MESSAGES='C'");
1617
$db->exec('CREATE TABLE test (foo varchar(5) NOT NULL, bar bool NOT NULL)');
1718
$db->exec("INSERT INTO test VALUES('false','f')");
1819
$db->exec("INSERT INTO test VALUES('true', 't')");

ext/pgsql/tests/09notice.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pgsql.ignore_notices=0
1010
include 'config.inc';
1111

1212
$db = pg_connect($conn_str);
13+
pg_exec($db, "SET LC_MESSAGES='C';");
1314
pg_query($db, "BEGIN;");
1415
pg_query($db, "BEGIN;");
1516

ext/pgsql/tests/80_bug32223.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ $dbh = @pg_connect($conn_str);
2222
if (!$dbh) {
2323
die ("Could not connect to the server");
2424
}
25+
pg_exec($dbh, "SET LC_MESSAGES='C';");
2526

2627
//@pg_query($dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
2728
$res = pg_query($dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '

ext/pgsql/tests/80_bug32223b.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #32223 (weird behaviour of pg_last_notice using notice)
2+
Bug #32223 (weird behaviour of pg_last_notice using define)
33
--SKIPIF--
44
<?php
55
require_once('skipif.inc');
@@ -16,13 +16,13 @@ if (!$res) die('skip PLPGSQL not available');
1616
--FILE--
1717
<?php
1818

19-
require('config.inc');
19+
require_once('config.inc');
2020

21-
define ('dbh', pg_connect($conn_str));
22-
//$dbh = @pg_connect($conn_str);
21+
define('dbh', pg_connect($conn_str));
2322
if (!dbh) {
2423
die ("Could not connect to the server");
2524
}
25+
pg_exec(dbh, "SET LC_MESSAGES='C';");
2626

2727
//@pg_query(dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
2828
$res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '

0 commit comments

Comments
 (0)