#34104 [NEW]: system(), exec() cann't hadle directory with space
| From: | superli_1980 at Hotmail dot com | Date: | Fri, 12 Aug 2005 16:04:48 +0000 |
| Subject: | #34104 [NEW]: system(), exec() cann't hadle directory with space | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83462@lists.php.net to get a copy of this message | ||
From: superli_1980 at Hotmail dot com
Operating system: Windows 2003
PHP version: 4.3.11
PHP Bug Type: Filesystem function related
Bug description: system(), exec() cann't hadle directory with space
Description:
------------
system(), exec() cann't hadle directory with space
Reproduce code:
---------------
$PHP_BIN="\"E:\\Program Files\\PHP\\php.exe\" ";
$PHP_SCRIPT="\"E:\\Program Files\\Apache
Group\\Apache2\\htdocs\\test.php\" ";
var_dump($PHP_BIN.$PHP_SCRIPT);
system($PHP_BIN.$PHP_SCRIPT);
Expected result:
----------------
"E:\Program Files\PHP\php.exe" "E:\Program Files\Apache
Group\Apache2\htdocs\test.php"
using php.exe excute the code in test.php
Actual result:
--------------
'E:\Program' bad command ...
--
Edit bug report at http://bugs.php.net/?id=34104&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34104&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34104&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34104&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34104&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34104&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34104&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34104&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34104&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34104&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34104&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34104&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34104&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34104&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34104&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34104&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34104&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34104&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34104&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34104&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34104&r=mysqlcfg