Bug #77111 [NEW]: php-win.exe corrupts unicode symbols from cli parameters

From: Date: Mon, 05 Nov 2018 20:03:33 +0000
Subject: Bug #77111 [NEW]: php-win.exe corrupts unicode symbols from cli parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217834@lists.php.net to get a copy of this message
From:             sh-ya at ya dot ru
Operating system: Windows 7
PHP version:      Irrelevant
Package:          *Unicode Issues
Bug Type:         Bug
Bug description:php-win.exe corrupts unicode symbols from cli parameters

Description:
------------
php-win.exe corrupts unicode characters passed to it via cli
parameters.
php.exe does not do this.

Test script:
---------------
CLI
--
php-win.exe test_script.php
"EĀ餁K脁獁ǒ脁᳁ğ肝Ź섁䤁"
----

test_script.php
--
file_put_contents('argv.txt', PHP_BINARY . PHP_EOL . print_r($argv,
TRUE));
----

argv.txt (utf-8)
--
php-win.exe
Array
(
    [0] => test_script.php
    [1] => EA?K??o??g?Z??
)
--
php.exe
Array
(
    [0] => test_script.php
    [1] => EĀ餁K脁獁ǒ脁᳁ğ肝Ź섁䤁
)
---



-- 
Edit bug report at https://bugs.php.net/bug.php?id=77111&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=77111&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=77111&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=77111&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77111&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77111&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77111&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77111&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77111&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77111&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77111&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=77111&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=77111&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77111&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77111&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77111&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77111&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77111&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77111&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77111&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77111&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#217834) next »