]> granicus.if.org Git - php/commitdiff
Extended the test for bug #65184
authorAnatol Belski <ab@php.net>
Wed, 3 Jul 2013 20:52:51 +0000 (22:52 +0200)
committerAnatol Belski <ab@php.net>
Wed, 3 Jul 2013 20:52:51 +0000 (22:52 +0200)
ext/date/tests/bug65184.phpt

index ade020ca364c6e4c84b96f18b47e9157be4587f8..adfd8d8124609a92fa0e3fb025a822db2e7dbac7 100644 (file)
@@ -9,14 +9,18 @@ if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') {
 --FILE--
 <?php
        setlocale(LC_ALL, 'Japanese_Japan.932');
-       $s = strftime('%A');
+       /* timestamp has to be some wednesday */
+       $s = strftime('%A', 1372884126);
 
        for ($i = 0; $i < strlen($s); $i++) {
                printf("%x ", ord($s[$i]));
        }
        echo "\n";
+
+       echo strlen(strftime('%A')), "\n";
 ?>
 ===DONE===
 --EXPECT--
 90 85 97 6a 93 fa 
+6
 ===DONE===