|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-16 16:36 UTC] andrey dot kalinovsky at gmail dot com
[2013-04-17 16:19 UTC] osmanov@php.net
-Assigned To:
+Assigned To: osmanov
[2013-04-17 19:07 UTC] osmanov@php.net
[2013-04-17 19:07 UTC] osmanov@php.net
-Status: Assigned
+Status: Closed
[2013-04-17 19:08 UTC] osmanov@php.net
[2014-04-08 07:56 UTC] heruan at aldu dot net
[2014-04-08 09:39 UTC] osmanov@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
Description: ------------ Event seems to segfault when given an unexisting fd or php://temp Test script: --------------- <?php $base = new EventBase(); $input = fopen("php://temp", "r+"); $event = new Event($base, $input, Event::READ, function ($fd, $events, $arg) { echo "OK"; }); $event->add(); $base->loop(); ?> Expected result: ---------------- OK Actual result: -------------- HP Warning: Event::__construct(): fcntl: invalid file descriptor passed in /Users/andrey/react/eventTest.php on line 8 PHP Stack trace: PHP 1. {main}() /Users/andrey/react/eventTest.php:0 PHP 2. Event->__construct() /Users/andrey/react/eventTest.php:8 Warning: Event::__construct(): fcntl: invalid file descriptor passed in /Users/andrey/react/eventTest.php on line 8 Call Stack: 0.0002 241160 1. {main}() /Users/andrey/react/eventTest.php:0 0.0005 246032 2. Event->__construct() /Users/andrey/react/eventTest.php:8 Segmentation fault: 11