php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77111 php-win.exe corrupts unicode symbols from cli parameters
Submitted: 2018-11-05 20:03 UTC Modified: -
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: sh-ya at ya dot ru Assigned:
Status: Closed Package: *Unicode Issues
PHP Version: Irrelevant OS: Windows 7
Private report: No CVE-ID: None
 [2018-11-05 20:03 UTC] 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脁獁ǒ脁᳁ğ肝Ź섁䤁
)
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-16 22:23 UTC] ab@php.net
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
 [2018-11-16 22:23 UTC] ab@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC