Re: Is there a reason why the "winbox-args" code has not been adoptedinto the PHP source code for escapeshellarg()?

[email protected] Mon, 24 Aug 2020 20:57:31 +0200 (CEST)
Newsgroups php.internals.win
Message-ID <[email protected]>
------=_Part_84159_1641044114.1598295451278
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Aug 24, 2020, 6:02 PM by [email protected]:

> Proper escaping on Windows isn't a nightmare =E2=80=93 it is impossible
>
So you are implying that the code I linked to is wrong in some way? How exa=
ctly? If it were impossible, nothing would work on Windows, but that's not =
the case.

And you entirely ignored my question about how file_exists=C2=A0 is able to=
 see any file...

> Anyhow, in most cases you don't need to have cmd.exe involved, and in
> these cases escaping is way simpler, and readily available as of PHP
> 7.4.0 if you pass an array as first argument to proc_open() instead of a
> string.
>
I don't know what you mean by "having cmd.exe involved". I'm talking about =
PHP -- not cmd.exe.

proc_open() is just one of many different functions, and it's significantly=
 more complex and difficult to use than the others. I'm aware of its existe=
nce and its new way of sending an array. Why haven't the other functions al=
so been upgraded like that? Do you not realize what a massive undertaking i=
t would be to completely re-learn a different function and change all of my=
 existing code to instead start using proc_open()?

------=_Part_84159_1641044114.1598295451278--