mirror of
https://github.com/php/php-src.git
synced 2024-10-14 13:02:37 +00:00
16 lines
246 B
PHP
16 lines
246 B
PHP
|
<?php
|
||
|
// optional functions
|
||
|
|
||
|
include('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';
|
||
|
|
||
|
|
||
|
?>
|