#34104 [Opn->Bgs]: system(), exec() cann't hadle directory with space
| From: | tony2001@php.net | Date: | Fri, 12 Aug 2005 16:07:16 +0000 |
| Subject: | #34104 [Opn->Bgs]: system(), exec() cann't hadle directory with space | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83463@lists.php.net to get a copy of this message | ||
ID: 34104
Updated by: tony2001@php.net
Reported By: superli_1980 at Hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows 2003
PHP Version: 4.3.11
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-08-12 18:04:48] superli_1980 at Hotmail dot com
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 this bug report at http://bugs.php.net/?id=34104&edit=1