|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-12-19 12:29 UTC] nikic@php.net
[2019-12-20 10:38 UTC] nikic@php.net
[2019-12-20 10:38 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ EAGAIN/EWOULDBLOCK writes result in a notice for non-blocking socket streams. Since PHP 7.4 additionally false will be returned. Test script: --------------- <?php error_reporting(E_ALL); [$sock1, $sock2] = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP); $str = str_repeat('a', 1000000); stream_set_blocking($sock1, false); var_dump(fwrite($sock1, $str)); var_dump(fwrite($sock1, $str)); Expected result: ---------------- int(196608) int(0) Actual result: -------------- Notice: fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable in /home/nikic/php-7.4/t246.php on line 6 int(196608) Notice: fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable in /home/nikic/php-7.4/t246.php on line 7 bool(false)