|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18474 the "parameters" argument can't include spaces
Submitted: 2002-07-22 16:57 UTC Modified: 2002-07-22 16:59 UTC
From: scott at criticalpath dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.2.1 OS: FreeBSD
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.
Block user comment
Status: Assign to:
Bug Type:
From: scott at criticalpath dot com
New email:
PHP Version: OS:


 [2002-07-22 16:57 UTC] scott at criticalpath dot com
My script calls the mail() function, using the 5th argument to pass options to the sendmail command-line, including the "-f" option to set the envelope sender. However, the latest version of PHP fails to pass extra arguments to the command line if there is a space anywhere.

For example, everything after the first space in the last argument of this mail() call is thrown away:

$headers . 'To: ' . join(',', $emails),
'-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/bulkmail'

Here is my configure line for PHP:

./configure --with-apache=../apache_1.3.26 --with-mysql --with-xml --with-session


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 16:59 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 05:01:35 2024 UTC