Test: /ext/date/tests/bug70245.phpt - Version 7.3.12        

Bug #70245 strtotime does not emit warning when 2nd parameter is object or string.
Submitted: 2015-08-12 12:17:54 Modified: 2015-08-12 17:05:39
From: arjen Assigned: cmb
Status: Closed Package: Date/time related
PHP Version: 7.0.0beta3 OS: Linux

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ Fatal error: Uncaught Exception: DateTime::__construct(): Invalid date.timezone value 'Japanese', we selected the timezone 'UTC' for now. in %s/bug70245.php:2
002+ Stack trace:
001- Warning: strtotime() expects parameter 2 to be int, object given in %sbug70245.php on line %d
002- bool(false)
003+ #0 %s/bug70245.php(2): DateTime->__construct('2011-01-15 00:0...')
004+ #1 {main}
005+ thrown in %s/bug70245.php on line 2