From: webmaster at wiedmann-online dot de Operating system: Windows_NT PHP version: 5.2.1 PHP Bug Type: *Mail Related Bug description: Can't use a sendmail_path with whitespace
Description: ------------ If I have the sendmail binary in a path with a whitespace, PHP can't open/find this program, because the path is not quotet in the popen call (mail.c). On *nix this is not a problem, because on *nix you escape a space with a backslash (Program\ Files) and don't quote the hole path ("Program Files") like on Windows. And a backslash I can add myself in php.ini. BTW: A 8.3 name (PROGRA~1) will still work on Windows, if it's not disabled in the NTFS settings. Reproduce code: --------------- [php.ini] sendmail_path = "C:\Pogram Files\sendmail\sendmail.exe -t" <?php mail('[EMAIL PROTECTED]', 'Subject', 'Message'); ?> Expected result: ---------------- Mail is send without problems. Actual result: -------------- 'C:\Program' is not recognized as an internal or external command, operable program or batch file. -- Edit bug report at http://bugs.php.net/?id=40988&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40988&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40988&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40988&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40988&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40988&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40988&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40988&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40988&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40988&r=support Expected behavior: http://bugs.php.net/fix.php?id=40988&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40988&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40988&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40988&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40988&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40988&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40988&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40988&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40988&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40988&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40988&r=mysqlcfg