1--TEST-- 2Test bug #65184 strftime() returns insufficient-length string under multibyte locales 3--SKIPIF-- 4<?php 5if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') { 6 die("skip Test is valid for Windows"); 7} 8?> 9--INI-- 10date.timezone = UTC 11error_reporting=E_ALL&~E_DEPRECATED 12--FILE-- 13<?php 14 setlocale(LC_ALL, 'Japanese_Japan.932'); 15 /* timestamp has to be some wednesday */ 16 $s = strftime('%A', 1372884126); 17 18 for ($i = 0; $i < strlen($s); $i++) { 19 printf("%x ", ord($s[$i])); 20 } 21 echo "\n"; 22 23 echo strlen(strftime('%A')), "\n"; 24?> 25--EXPECT-- 2690 85 97 6a 93 fa 276 28