Bug #76663 [Nab]: fwrite(): send of X bytes failed with errno=32 Broken pipe
| From: | standus at post dot cz | Date: | Wed, 25 Jul 2018 16:50:09 +0000 |
| Subject: | Bug #76663 [Nab]: fwrite(): send of X bytes failed with errno=32 Broken pipe | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216453@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76663&edit=1
ID: 76663
User updated by: standus at post dot cz
Reported by: standus at post dot cz
Summary: fwrite(): send of X bytes failed with errno=32
Broken pipe
Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: CentOS, linux, windows
PHP Version: 7.0.31
Block user comment: N
Private report: N
New Comment:
This problem happened to me every day with any long time running script.
And it has not solution. Thats why I wrote this bug because I mean it must be solved in PHP function
code.
Previous Comments:
------------------------------------------------------------------------
[2018-07-25 16:41:49] requinix@php.net
The code you linked, which hasn't received any updates in more than four years, and was clearly
written for PHP 4, does not check the return value of fwrite at all.
But verifying an email account with the SMTP server is not even reliable in the first place. Require
the address be entered twice by the user, validate the email address syntax is correct, and send a
confirmation email with a link to your site that the user clicks so you know they received it.
------------------------------------------------------------------------
[2018-07-25 16:25:12] standus at post dot cz
By me when some function is impossible catch it or prevent problem with @ prefix its big problem
which broken long running script. I except when fwrite function return false when some uncatchable
problem will happen.
------------------------------------------------------------------------
[2018-07-25 16:22:24] standus at post dot cz
Other way is that in documentation for fwrite is return status if this function will fail but its
not happen.
------------------------------------------------------------------------
[2018-07-25 15:45:58] requinix@php.net
The only place in that code with an fwrite() is where it tries to write to a socket. Sockets break.
It happens.
------------------------------------------------------------------------
[2018-07-25 15:38:41] standus at post dot cz
Afted that some PHP function has some problem with DNS resolver.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76663
--
Edit this bug report at https://bugs.php.net/bug.php?id=76663&edit=1