ID: 26285
Updated by: [email]iliaa@php.net[/email]
Reported By: jb at ez dot no
-Status: Assigned
+Status: Closed
Bug Type: *General Issues
Operating System: Windows
PHP Version: 4.3.3
Assigned To: iliaa
New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at [url]http://snaps.php.net/[/url].

In case this was a documentation problem, the fix will show up soon at
[url]http://www.php.net/manual/[/url].

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.

Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-11-17 06:43:20] jb at ez dot no

Description:
------------
The escapeshellarg function in PHP creates wrongly escaped text on
windows. It seems it always uses the single-quote (') for escaping the

strings, however on windows the correct way to escape is using the
double-quote (") character.

The same problems seems to be in the escapeshellcmd function as
well.

Reproduce code:
---------------
escapeshellarg( "-arg value" );

Expected result:
----------------
"-arg value"

Actual result:
--------------
'-arg value'


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=26285&edit=1[/url]