![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #33456 (strtotime defaults to now even on non time string) 3: --FILE-- 4: <?php 5: date_default_timezone_set("GMT"); 6: var_dump(strtotime("monkey")); 7: print date("Y-m-d", strtotime("monkey")) ."\n"; 8: print date("Y-m-d", false) ."\n"; 9: ?> 10: --EXPECT-- 11: bool(false) 12: 1970-01-01 13: 1970-01-01