Ask a Question related to PHP Development, Design and Development.
-
iliaa@php.net #1
#26285 [Opn->Asn]: escapeshellarg uses wrong quotes on windows
ID: 26285
Updated by: [email]iliaa@php.net[/email]
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 [url]http://bugs.php.net/?id=26285&edit=1[/url]
iliaa@php.net Guest
-
#26285 [Asn->Csd]: escapeshellarg uses wrong quotes on windows
ID: 26285 Updated by: iliaa@php.net Reported By: jb at ez dot no -Status: Assigned +Status: Closed... -
#26285 [NEW]: escapeshellarg uses wrong quotes on windows
From: jb at ez dot no Operating system: Windows PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: ... -
Single Quotes vs Double Quotes
With all that's been said in mind ('$var' unparsed "$var" parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n... -
[PHP] Single Quotes vs Double Quotes
Hi, Tuesday, September 9, 2003, 2:03:34 PM, you wrote: mb> Hi everyone, mb> Could somebody please explain to me the difference mb> between... -
Recommend pse: Quotes, Single Quotes, etc. basics
I've been fooling with this stuff for awhile and I still have problems with quotes, double quotes, etc. I have no programming or database...



Reply With Quote

