From: cameron at datashovel dot com Operating system: FreeBSD9.x PHP version: 5.4.8 Package: Streams related Bug Type: Feature/Change Request Bug description:stream_notification_callback
Description: ------------ I've been doing alot of research / experimentation with libevent in PHP recently. I have been thinking about how I would want to implement an event-based framework, similar to reactphp (http://www.github.com/reactphp/react). I think it would be a nice addition if we had the ability to receive a subset of the stream_notification_callback notifications on plain tcp/udp sockets. This way if I create a custom streamWrapper, I can do this in a way that makes it easy to hook libevent into my stream implementations. It appears the only 2 implementations for these notifications via stream_notification_callback are in the http and ftp wrappers. Test script: --------------- this is an enhancement request, not necessarily a bug. Expected result: ---------------- enhancement, not bug Actual result: -------------- enhancement, not bug -- Edit bug report at https://bugs.php.net/bug.php?id=63556&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63556&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63556&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63556&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63556&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63556&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63556&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63556&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63556&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63556&r=support Expected behavior: https://bugs.php.net/fix.php?id=63556&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63556&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63556&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63556&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63556&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63556&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63556&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63556&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63556&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63556&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63556&r=mysqlcfg