summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug33536.phpt
blob: aa5f5ddb38bfe368c212cb89f8f3501a56671e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #33456 (strtotime defaults to now even on non time string)
--FILE--
<?php
date_default_timezone_set("GMT");
var_dump(strtotime("monkey"));
print date("Y-m-d", strtotime("monkey")) ."\n";
print date("Y-m-d", false) ."\n";
?>
--EXPECT--
bool(false)
1970-01-01
1970-01-01