|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59235 Missed event_buffer_setcb()
Submitted: 2010-05-27 06:13 UTC Modified: 2010-05-27 10:05 UTC
From: kak dot serpom dot po dot yaitsam at gmail dot com Assigned:
Status: Closed Package: libevent (PECL)
PHP Version: 5_3 SVN-2010-05-27 (dev) OS: Fedora 13
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
21 + 10 = ?
Subscribe to this entry?

 [2010-05-27 06:13 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
I've noticed that libevent has the following function:

bufferevent_setcb (struct bufferevent *bufev, evbuffercb 
readcb, evbuffercb writecb, everrorcb errorcb, void *cbarg)
 	Changes the callbacks for a bufferevent. 

Please, make wrapper to this function. It's very useful for me 
and many other people. Thanks.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-27 06:46 UTC] tony at daylessday dot org
check this patch out.

I'm not sure if error callback should be still a requirement, though it is in libevent itself.
The point is that we actually always specify C callbacks for libevent, but PHP callbacks can be missing - that won't result in any error.
What do you think?
 [2010-05-27 10:05 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
It works! Excuse me for the late answer and thank you very 
much for quick patch.

I'm not sure too, but I always define errorcb. I think that it 
should be a requirement, because it's requirement at C-level.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 20:01:29 2024 UTC