|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-16 20:38 UTC] edefimov dot it at gmail dot com
[2015-09-17 12:24 UTC] tony2001@php.net
[2015-09-17 12:24 UTC] tony2001@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 31 23:00:01 2025 UTC |
Description: ------------ In libevent extension version 0.1.0 it is impossible to use event_set with persistent socket resource. Test script: --------------- <?php $socket = pfsockopen('php.net', 80); stream_set_blocking($socket, 0); $base = event_base_new(); $event = event_new(); $result = event_set($event, $socket, EV_READ | EV_WRITE, function ($socket) { }); var_dump($result); Expected result: ---------------- bool(true) Actual result: -------------- PHP Warning: event_set(): fd argument must be either valid PHP stream or valid PHP socket resource