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]