Ask a Question related to PHP Development, Design and Development.
-
jb at ez dot no #1
#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: escapeshellarg uses wrong quotes on windows
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 bug report at [url]http://bugs.php.net/?id=26285&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26285&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26285&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26285&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26285&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26285&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26285&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26285&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26285&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26285&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26285&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26285&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26285&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26285&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26285&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26285&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26285&r=float[/url]
jb at ez dot no 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 [Opn->Asn]: escapeshellarg uses wrong quotes on windows
ID: 26285 Updated by: iliaa@php.net Reported By: jb at ez dot no -Status: Open +Status: Assigned... -
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

