Bug #65371 [Opn->Fbk]: strftime() returns insufficient string
Edit report at https://bugs.php.net/bug.php?id=65371&edit=1
ID: 65371
Updated by: ab@php.net
Reported by: kenji dot uui at gmail dot com
Summary: strftime() returns insufficient string
-Status: Open
+Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 5.5.1
Block user comment: N
Private report: N
New Comment:
Please check with bug #65184, the issue your report looks very similar and is most likely already
fixed.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[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)