php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63556 stream_notification_callback
Submitted: 2012-11-18 21:19 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cameron at datashovel dot com Assigned:
Status: Open Package: Streams related
PHP Version: 5.4.8 OS: FreeBSD9.x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cameron at datashovel dot com
New email:
PHP Version: OS:

 

 [2012-11-18 21:19 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-18 23:07 UTC] cameron at datashovel dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC