ID:               26285
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jb at ez dot no
-Status:           Open
+Status:           Assigned
 Bug Type:         *General Issues
 Operating System: Windows
 PHP Version:      4.3.3
-Assigned To:      
+Assigned To:      iliaa


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 http://bugs.php.net/?id=26285&edit=1

Reply via email to