1--TEST-- 2Bug GH-15582: Crash when not calling parent constructor of DateTimeZone 3--FILE-- 4<?php 5class MyDateTimeZone extends DateTimeZone 6{ 7 function __construct() 8 { 9 } 10} 11 12$mdtz = new MyDateTimeZone(); 13$fusion = $mdtz; 14try { 15 date_create("2005-07-14 22:30:41", $fusion); 16} catch (Error $e) { 17 echo get_class($e), ': ', $e->getMessage(), "\n"; 18} 19?> 20--EXPECT-- 21Error: The DateTimeZone object has not been correctly initialized by its constructor 22