Bug #78115 [Opn->Fbk]: Output mismatch
| From: | cmb@php.net | Date: | Thu, 06 Jun 2019 08:28:57 +0000 |
| Subject: | Bug #78115 [Opn->Fbk]: Output mismatch | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-221159@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78115&edit=1
ID: 78115
Updated by: cmb@php.net
Reported by: v-altruo at microsoft dot com
Summary: Output mismatch
-Status: Open
+Status: Feedback
Type: Bug
Package: Testing related
Operating System: Windows
PHP Version: 7.3.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for reporting!
Actually, this test is supposed to be skipped on Windows[1], since
neither of the given locales is supposed to be accepted there. It
is indeed skipped when I run locally, and on AppVeyor[2] as well.
On my machine, it would not be skipped, however, if I changed the
LC_CTYPE to LC_ALL.
Anyhow, this issue should be fixed with the suggested fix for bug
#77937[3]. Please check whether this is indeed the case.
[1] <https://github.com/php/php-src/blob/php-7.3.6/sapi/cli/tests/bug44564.phpt#L5>
[2] <https://ci.appveyor.com/project/php/php-src/builds/25063179/job/hnobwca23aq8fnle#L5677>
[3] <https://github.com/php/php-src/pull/4169>
Previous Comments:
------------------------------------------------------------------------
[2019-06-05 18:43:05] 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ÅÅâ¬""
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78115&edit=1