php.net |  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
 [2013-05-08 04:23 UTC] chopins dot xiao at gmail dot com
Description:
------------
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
Ev::run();

Expected result:
----------------
no error report

Actual result:
--------------
report Warning

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-08 05:12 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2013-05-08 05:12 UTC] pajoye@php.net
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] osmanov@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: osmanov
 [2013-07-16 18:19 UTC] osmanov@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

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

Thanks.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 06:01:26 2019 UTC