|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-06-05 18:43 UTC] v-altruo at microsoft dot com
Description:
------------
The test fails across all builds. It also fails for php-7.1.30 and php-7.2.19.
Test file location: Sapi\cli\tests\bug44564.phpt
Test script:
---------------
<?php
setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");
var_dump(escapeshellcmd('f{o}<€>'));
var_dump(escapeshellarg('f~|;*Þ?'));
var_dump(escapeshellcmd('?€®đæ?'));
var_dump(escapeshellarg('aŊł€'));
?>
Expected result:
----------------
string(13) "f\{o\}\<€\>"
string(10) "'f~|;*Þ?'"
string(13) "\?€®đæ\?"
string(10) "'aŊł€'"
Actual result:
--------------
string(13) "f^{o^}^<€^>"
string(10) ""f~|;*Þ?""
string(13) "^?€®đæ^?"
string(10) ""aŊł€""
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
Please change the skip-if clause[1] to if (false == setlocale(LC_CTYPE, "UTF8")) { and if (false == setlocale(LC_CTYPE, "en_US.UTF-8")) { and run the test again (i.e. two runs). Is the test skipped for either variant? [1] <https://github.com/php/php-src/blob/php-7.3.6/sapi/cli/tests/bug44564.phpt#L5>The test is skipped for: if (false == setlocale(LC_CTYPE, "UTF8")) { Test fails for: if (false == setlocale(LC_CTYPE, "en_US.UTF8")) {