Download src/php/php-src/ext/pgsql/tests/21pg_get_notify.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/21pg_get_notify.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pgsql/tests/21pg_get_notify.phpt
-
curl -L -o 21pg_get_notify.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/21pg_get_notify.phpt
385 Bytes
| --TEST-- | |
| PostgreSQL pg_get_notify() functions | |
| --EXTENSIONS-- | |
| pgsql | |
| --SKIPIF-- | |
| include("inc/skipif.inc"); | |
| --FILE-- | |
| // 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 | |