Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #35699 (date() can't handle leap years before 1970) --FILE-- <?php date_defau..
Decoded Output download
--TEST--
Bug #35699 (date() can't handle leap years before 1970)
--FILE--
<?php
date_default_timezone_set("UTC");
echo date(DATE_ISO8601, strtotime('1964-06-06')), "
";
echo date(DATE_ISO8601, strtotime('1963-06-06')), "
";
echo date(DATE_ISO8601, strtotime('1964-01-06')), "
";
?>
--EXPECT--
1964-06-06T00:00:00+0000
1963-06-06T00:00:00+0000
1964-01-06T00:00:00+0000
Did this file decode correctly?
Original Code
--TEST--
Bug #35699 (date() can't handle leap years before 1970)
--FILE--
<?php
date_default_timezone_set("UTC");
echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
?>
--EXPECT--
1964-06-06T00:00:00+0000
1963-06-06T00:00:00+0000
1964-01-06T00:00:00+0000
Function Calls
date_default_timezone_set | 1 |
Stats
MD5 | 118a0891499b7b0ea5bf0d4fd4b1c294 |
Eval Count | 0 |
Decode Time | 95 ms |