Edit report at https://bugs.php.net/bug.php?id=64788&edit=1
ID: 64788 Updated by: paj...@php.net Reported by: chopins dot xiao at gmail dot com Summary: Can't var_dump EvWatcher object before run -Status: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: Fedora 18 x86_64 PHP Version: 5.4.14 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-05-08 04:23:01] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64788&edit=1