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

From: Date: Fri, 16 Nov 2018 22:23:50 +0000
Subject: Bug #77111 [Opn->Csd]: php-win.exe corrupts unicode symbols from cli parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217994@lists.php.net to get a copy of this message
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)

« previous php.bugs (#217994) next »