Bug #78115 [NEW]: Output mismatch

From: Date: Wed, 05 Jun 2019 18:43:05 +0000
Subject: Bug #78115 [NEW]: Output mismatch
Groups: php.bugs php.qa 
Request: Send a blank email to php-bugs+get-221143@lists.php.net to get a copy of this message
From: v-altruo at microsoft dot com Operating system: Windows PHP version: 7.3.6 Package: Testing related Bug Type: Bug Bug description:Output mismatch 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 bug report at https://bugs.php.net/bug.php?id=78115&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78115&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78115&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78115&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78115&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78115&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78115&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78115&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78115&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78115&r=support Expected behavior: https://bugs.php.net/fix.php?id=78115&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78115&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78115&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78115&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78115&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78115&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78115&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78115&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78115&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78115&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78115&r=mysqlcfg

« previous php.bugs (#221143) next »