diff options
| author | Matteo Beccati <mbeccati@php.net> | 2011-08-30 14:01:03 +0000 |
|---|---|---|
| committer | Matteo Beccati <mbeccati@php.net> | 2011-08-30 14:01:03 +0000 |
| commit | 238a51ec6ee650a5c98c0db928ff4b4309535a15 (patch) | |
| tree | fc5da7da854cd5a350318c3a37b23a888c6a6488 /ext/pgsql/tests/80_bug32223.phpt | |
| parent | d972f636c96a49073a34794380321a6f3e3b6a8f (diff) | |
| download | php-git-238a51ec6ee650a5c98c0db928ff4b4309535a15.tar.gz | |
Fixed a few false positives on gcov for ext/pgsql
Diffstat (limited to 'ext/pgsql/tests/80_bug32223.phpt')
| -rwxr-xr-x | ext/pgsql/tests/80_bug32223.phpt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/pgsql/tests/80_bug32223.phpt b/ext/pgsql/tests/80_bug32223.phpt index b201d320ce..573742c6e4 100755 --- a/ext/pgsql/tests/80_bug32223.phpt +++ b/ext/pgsql/tests/80_bug32223.phpt @@ -3,6 +3,8 @@ Bug #32223 (weird behaviour of pg_last_notice) --SKIPIF-- <?php require_once('skipif.inc'); + +_skip_lc_messages(); @pg_query($conn, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'"); $res = @pg_query($conn, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' @@ -17,14 +19,15 @@ if (!$res) die('skip PLPGSQL not available'); <?php require_once('config.inc'); +require_once('lcmess.inc'); $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'"); +_set_lc_messages(); + $res = pg_query($dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' begin RAISE NOTICE ''11111''; |
