Test: /ext/date/tests/bug67118.phpt - Version 5.7.0-dev        

Bug #67118 DateTime constructor crash with invalid data
Submitted: 2014-04-23 14:51:15 Modified: 2014-08-25 00:21:18
From: per Assigned: ab
Status: Closed Package: Reproducible crash
PHP Version: 5.5.11 OS: Windows 2008 R2

There are 5 different diffs reported by users for this test.

Count Diff
92 (63%)
001+ Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %s/bug67118.php on line 12
001- Fatal error: Call to a member function format() on null in %sbug67118.php on line %d
002+ Bad date
43 (30%)
001+ Fatal error: Call to a member function format() on null in %s/bug67118.php on line 12
001- Fatal error: Call to a member function format() on a non-object in %sbug67118.php on line %d
6 (4%)
001+ Catchable fatal error: Call to a member function format() on null in %s/bug67118.php on line 12
001- Fatal error: Call to a member function format() on null in %sbug67118.php on line %d
3 (2%)
001+ Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %s/bug67118.php on line 12
001- Fatal error: Call to a member function format() on a non-object in %sbug67118.php on line %d
002+ Bad date
1 (1%)
001+ Parse error: syntax error, unexpected 'publi' (T_STRING), expecting function (T_FUNCTION) in %s/bug67118.php on line 4
001- Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (Funktionsansvarig rådgivning och juridik) at position 0 (F): The timezone could not be found in the database' in %sbug67118.php:%d
002- Stack trace:
003- #0 %sbug67118.php(%d): DateTime->__construct('Funktionsansvar...', Object(DateTimeZone))
004- #1 %sbug67118.php(%d): mydt->__construct('Funktionsansvar...', 'UTC')
005- #2 {main}
006- thrown in %sbug67118.php on line %d