Bug #77111 [Opn->Csd]: php-win.exe corrupts unicode symbols from cli parameters
Edit report at https://bugs.php.net/bug.php?id=77111&edit=1
ID: 77111
Updated by: ab@php.net
Reported by: sh-ya at ya dot ru
Summary: php-win.exe corrupts unicode symbols from cli
parameters
-Status: Open
+Status: Closed
Type: Bug
Package: *Unicode Issues
Operating System: Windows 7
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a7e9790969952c0574d8708277abfd25d12f58e5
Log: Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
Previous Comments:
------------------------------------------------------------------------
[2018-11-05 20:03:33] sh-ya at ya dot ru
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 this bug report at https://bugs.php.net/bug.php?id=77111&edit=1
Thread (2 messages)