php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38342 mail() always returns FALSE with --enable-sigchild
Submitted: 2006-08-05 10:19 UTC Modified: 2006-08-05 14:59 UTC
From: geoffwa at cs dot rmit dot edu dot au Assigned:
Status: Not a bug Package: Mail related
PHP Version: 5.2.0RC1 OS: Solaris 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: geoffwa at cs dot rmit dot edu dot au
New email:
PHP Version: OS:

 

 [2006-08-05 10:19 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-05 14:59 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 17:01:30 2024 UTC