php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47543 irrelevant warning message
Submitted: 2009-03-02 12:50 UTC Modified: 2009-03-08 06:12 UTC
From: jeffreybolle at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Mail related
PHP Version: 5.3.0beta1 OS: Windows Vista SP1
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: jeffreybolle at gmail dot com
New email:
PHP Version: OS:

 

 [2009-03-02 12:50 UTC] jeffreybolle at gmail dot com
Description:
------------
When using the mail() function PHP displays an irrelevant warning message.

Reproduce code:
---------------
mail("jeffreybolle@gmail.com","test subject","test message");

Expected result:
----------------
The email is sent and no warnings are displayed.

Actual result:
--------------
The email is sent but the following warning is displayed:

Warning: mail() [function.mail]: Filename cannot be empty in {script name} on line {line number}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-02 15:30 UTC] kalle@php.net
Have you enabled the mailing logging feature thats available as of PHP 5.3 and not defined a mail log setting (mail.log)
 [2009-03-02 15:45 UTC] jeffreybolle at gmail dot com
Hi Kalle,

Yes that was it my php.ini file had "mail.log = " uncommented by default.  Once I removed that line the warning disappeared.  

Thank you for your help.  Sorry for the bogus report.

Regards
  Jeffrey
 [2009-03-06 17:53 UTC] danielc@php.net
The php.ini-recommended and php.ini-dist in CVS need to have the mail.log entries commented out by default.
 [2009-03-08 06:12 UTC] kalle@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC