Req #63556 [Com]: stream_notification_callback
| From: | cameron at datashovel dot com | Date: | Sun, 18 Nov 2012 23:07:24 +0000 |
| Subject: | Req #63556 [Com]: stream_notification_callback | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174790@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63556&edit=1
ID: 63556
Comment by: cameron at datashovel dot com
Reported by: cameron at datashovel dot com
Summary: stream_notification_callback
Status: Open
Type: Feature/Change Request
Package: Streams related
Operating System: FreeBSD9.x
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
One thing I think I should clarify. Ideally the notifications would work for
servers as well as clients. In particular I'm thinking about the 'connect' and
'close' notifications. Not sure if the original intention for the notifications
was to work in both directions, since it appears both implementations are meant
for clients.
Previous Comments:
------------------------------------------------------------------------
[2012-11-18 21:19:19] cameron at datashovel dot com
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 this bug report at https://bugs.php.net/bug.php?id=63556&edit=1