--TEST-- PostgreSQL notice function --SKIPIF-- --FILE-- getMessage() . \PHP_EOL; } ?> --EXPECTF-- resource(%d) of type (pgsql result) string(0) "" array(0) { } Notice: pg_query(): %s already a transaction in progress in %s on line %d Notice: pg_query(): %s already a transaction in progress in %s on line %d Notice: pg_query(): %s already a transaction in progress in %s on line %d string(52) "WARNING: there is already a transaction in progress" array(3) { [0]=> string(52) "WARNING: there is already a transaction in progress" [1]=> string(52) "WARNING: there is already a transaction in progress" [2]=> string(52) "WARNING: there is already a transaction in progress" } bool(true) string(0) "" array(0) { } pg_last_notice(): Argument #2 ($mode) must be one of PGSQL_NOTICE_LAST, PGSQL_NOTICE_ALL, or PGSQL_NOTICE_CLEAR