mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
c15988aab3
This makes the tests independent of each other and allows them to be run in parallel. Co-authored-by: Gina Peter Banyard <girgias@php.net>
23 lines
385 B
PHP
23 lines
385 B
PHP
--TEST--
|
|
PostgreSQL pg_get_notify() functions
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--SKIPIF--
|
|
<?php include("inc/skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
// optional functions
|
|
|
|
include('inc/config.inc');
|
|
|
|
$db = pg_connect($conn_str);
|
|
pg_query($db, 'LISTEN test_msg');
|
|
pg_query($db, 'NOTIFY test_msg');
|
|
|
|
$msg = pg_get_notify($db);
|
|
|
|
isset($msg['message'],$msg['pid']) ? print 'OK' : print 'NG';
|
|
?>
|
|
--EXPECT--
|
|
OK
|