Bug #76663 [Nab]: fwrite(): send of X bytes failed with errno=32 Broken pipe

From: Date: Wed, 25 Jul 2018 16:41:49 +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-216452@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 Updated by: requinix@php.net 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: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2018-07-25 15:38:36] requinix@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. https://github.com/semplon/php-smtp-email-validation/issues ------------------------------------------------------------------------ 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

« previous php.bugs (#216452) next »