Bug #65371 [Com]: strftime() returns insufficient string
Edit report at https://bugs.php.net/bug.php?id=65371&edit=1
ID: 65371
Comment by: kenji dot uui at gmail dot com
Reported by: kenji dot uui at gmail dot com
Summary: strftime() returns insufficient string
Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 5.5.1
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
I've checked PHP 5.5.6, but not yet fixed. Thanks.
Results:
----------------
ã
ãE
e38182
e3818145
Previous Comments:
------------------------------------------------------------------------
[2014-01-02 13:52:06] ab@php.net
Please check with bug #65184, the issue your report looks very similar and is most likely already
fixed.
Thanks.
------------------------------------------------------------------------
[2013-08-01 11:42:42] kenji dot uui at gmail dot com
Description:
------------
strftime() breaks UTF-8 Japanese characters.
It worked fine in PHP 5.4.
Test script:
---------------
<?php
function p($str)
{
echo $str, '<br>';
echo strftime($str), '<br>';
echo bin2hex($str), '<br>';
echo bin2hex(strftime($str)), '<hr>';
}
setlocale(LC_ALL, 'C');
p('ã');
Expected result:
----------------
ã
ã
e38182
e38182
Actual result:
--------------
ã
ãE
e38182
e3818145
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65371&edit=1
Thread (10 messages)