xref: /PHP-8.0/ext/date/tests/bug33536.phpt (revision bf23d8d2)
1--TEST--
2Bug #33456 (strtotime defaults to now even on non time string)
3--FILE--
4<?php
5date_default_timezone_set("GMT");
6var_dump(strtotime("monkey"));
7print date("Y-m-d", strtotime("monkey")) ."\n";
8print date("Y-m-d", false) ."\n";
9?>
10--EXPECT--
11bool(false)
121970-01-01
131970-01-01
14