|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64788 Can't var_dump EvWatcher object before run
Submitted: 2013-05-08 04:23 UTC Modified: 2013-07-16 18:19 UTC
From: chopins dot xiao at gmail dot com Assigned: osmanov (profile)
Status: Closed Package: event (PECL)
PHP Version: 5.4.14 OS: Fedora 18 x86_64
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.
Block user comment
Status: Assign to:
Bug Type:
From: chopins dot xiao at gmail dot com
New email:
PHP Version: OS:


 [2013-05-08 04:23 UTC] chopins dot xiao at gmail dot com
use EvIo create  watchers object,
and var_dump the object before Ev:run
will report Warning: Ev::run(): Got unspecified libev error in revents, errno = 9, err = Bad file descriptor 
but no var_dump the object will be correct

Test script:
$ev = new EvIo(STDIN, Ev::READ, function ($watcher, $revents) {
    echo "STDIN is readable\n";
var_dump($ev); //if comment it be correct

Expected result:
no error report

Actual result:
report Warning


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-08 05:12 UTC]
-Status: Open +Status: Feedback
 [2013-05-08 05:12 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2013-05-08 05:49 UTC] chopins dot xiao at gmail dot com
this is ev bug
 [2013-05-08 05:49 UTC] chopins dot xiao at gmail dot com
-Status: Feedback +Status: Open -Package: *General Issues +Package: event
 [2013-07-16 18:19 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: osmanov
 [2013-07-16 18:19 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

Sorry for the delay. I hadn't received E-mail notification.
Fixed in release 0.2.5.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Oct 02 23:05:52 2022 UTC