RE: [PHP-DEV] Suggestion for fixing Bug #40928

2007-07-11 Thread Tzachi Tager
ot the runs of the cmd.exe which does the escaping internally). Which is what I wanted in the first place (and I know it looks ugly...). Tzachi. -Original Message- From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] Sent: ג 10 יולי 2007 23:51 To: Tzachi Tager Cc: internals@lists.php.net Subject: Re:

Re: [PHP-DEV] Suggestion for fixing Bug #40928

2007-07-10 Thread Stanislav Malyshev
/en-us/ntcmds_shelloverview.mspx?mfr=true , quoting: "You can use most characters as variable values, including white space. If you use the special characters <, >, |, &, or ^, you must precede them with the escape character (^) or quotation marks." - So all special characters will be replaced wit

RE: [PHP-DEV] Suggestion for fixing Bug #40928

2007-07-06 Thread Tzachi Tager
/* since Windows does not allow us to escape these chars, just remove them */ cmd[y++] = ' '; break; #endif + case '\\': cmd[y++] = '\\';

Re: [PHP-DEV] Suggestion for fixing Bug #40928

2007-07-05 Thread Frode E. Moe
On Fri, Jul 06, 2007 at 01:29:31 +0300, Tzachi Tager wrote: > Hi, > I was looking at Bug #40928 - escapeshellarg() does not quote percent > (%) correctly for cmd.exe. > This bug seems to be because escapeshellarg() in Windows replaces '%' > and '"' with spaces, while assuming there isn't a real es