#38342 [Opn->Bgs]: mail() always returns FALSE with --enable-sigchild

From: Date: Sat, 05 Aug 2006 14:59:50 +0000
Subject: #38342 [Opn->Bgs]: mail() always returns FALSE with --enable-sigchild
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100387@lists.php.net to get a copy of this message
ID: 38342 Updated by: iliaa@php.net Reported By: geoffwa at cs dot rmit dot edu dot au -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Solaris 10 PHP Version: 5.2.0RC1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php When sigchild handler is enabled it is no longer possible to accurately gauge the return code of an external command. Previous Comments: ------------------------------------------------------------------------ [2006-08-05 10:19:20] geoffwa at cs dot rmit dot edu dot au Description: ------------ PHP's sigchild handler clobbers returns from the mail() function. This is similar to bug #8992/#28294. Compiling PHP without --enable-sigchild makes mail() work as expected. And as a side note, what is the point of the sigchild handler? Surely it's better to signal(SIGCHLD, SIG_IGN) if you don't care about the return status of your children? Is it still needed if you're compiling --with-oci8 for recent versions of the OCI libraries? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38342&edit=1

« previous php.bugs (#100387) next »