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

From: Date: Wed, 25 Jul 2018 15:37:01 +0000
Subject: Bug #76663 [NEW]: fwrite(): send of X bytes failed with errno=32 Broken pipe
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216446@lists.php.net to get a copy of this message
From: standus at post dot cz Operating system: windows PHP version: 7.0.31 Package: *General Issues Bug Type: Bug Bug description:fwrite(): send of X bytes failed with errno=32 Broken pipe Description: ------------ I have code for testing huge of emails existence. Using functions: getmxrr($domain, $hosts, $mxweights); gethostbyname($host); After 1 or 2 hours cron runnig it will fail with errors: fwrite(): send of 38 bytes failed with errno=32 Broken pipe fwrite(): send of 29 bytes failed with errno=104 Connection reset by peer A am using simple php class which dooing this functionality: https://github.com/semplon/php-smtp-email-validation Test script: --------------- // include SMTP Email Validation Class require_once('smtp_validateEmail.class.php'); // the email to validate $emails = array('user@example.com', 'user2@example.com', ...); //or foreach from DB storage // an optional sender $sender = 'user@yourdomain.com'; // instantiate the class $SMTP_Validator = new SMTP_validateEmail(); // turn on debugging if you want to view the SMTP transaction $SMTP_Validator->debug = true; // do the validation $results = $SMTP_Validator->validate($emails, $sender); // view results foreach($results as $email=>$result) { // send email? if ($result) { //mail($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email } else { echo 'The email address '. $email.' is not valid'; } } Expected result: ---------------- no errors -- Edit bug report at https://bugs.php.net/bug.php?id=76663&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76663&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76663&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76663&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76663&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76663&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76663&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76663&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76663&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76663&r=support Expected behavior: https://bugs.php.net/fix.php?id=76663&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76663&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76663&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76663&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76663&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76663&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76663&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76663&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76663&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76663&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76663&r=mysqlcfg

« previous php.bugs (#216446) next »