Annotation of embedaddon/php/ext/pgsql/tests/21pg_get_notify.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: PostgreSQL pg_get_notify() functions
        !             3: --SKIPIF--
        !             4: <?php include("skipif.inc"); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: // optional functions
        !             8: 
        !             9: include('config.inc');
        !            10: 
        !            11: $db = pg_connect($conn_str);
        !            12: pg_query($db, 'LISTEN test_msg');
        !            13: pg_query($db, 'NOTIFY test_msg');
        !            14: 
        !            15: $msg = pg_get_notify($db);
        !            16: 
        !            17: isset($msg['message'],$msg['pid']) ? print 'OK' : print 'NG';
        !            18: ?>
        !            19: --EXPECT--
        !            20: OK

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>