Bug #18474: the "parameters" argument can't include spaces

From: Date: Mon, 22 Jul 2002 20:57:08 +0000
Subject: Bug #18474: the "parameters" argument can't include spaces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14796@lists.php.net to get a copy of this message
From:             scott@criticalpath.com
Operating system: FreeBSD
PHP version:      4.2.1
PHP Bug Type:     Mail related
Bug description:  the "parameters" argument can't include spaces

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:

mail(
'',
$subject,
$message,
$headers . 'To: ' . join(',', $emails),
'-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/bulkmail
-fbounce@server.com'
);


Here is my configure line for PHP:

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


-- 
Edit bug report at http://bugs.php.net/?id=18474&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=18474&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=18474&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=18474&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=18474&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18474&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=18474&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=18474&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=18474&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=18474&r=globals



Thread (2 messages)

« previous php.bugs (#14796) next »