mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
bf23d8d2b8
- Added missing proto's and folding marks.
14 lines
282 B
PHP
14 lines
282 B
PHP
--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
|