|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-19 10:32 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
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'