PDO::PgSQL Notify support
| From: | Matteo Beccati | Date: | Mon, 26 Jan 2009 00:13:12 +0000 |
| Subject: | PDO::PgSQL Notify support | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-42838@lists.php.net to get a copy of this message | ||
Hi,
the recent email about pg_get_socket reminded me that PDO:PgSQL doesn't
have notify support. Here's a small patch and a phpt that add support
for the LISTEN/NOTIFY mechanism using PDO. The PDO::pgsqlGetNotify
method only returns an assoc array, but it could be easily modified to
mimic the behaviour of pg_get_notify.
The patch applies to PHP 5.2 HEAD. If you find it useful I can provide
patches to PHP_5_3 or PHP_6.
Cheers
--
Matteo Beccati
OpenX - http://www.openx.org