1--TEST-- 2IntlTimeZone clone handler: error test 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8 9class A extends IntlTimeZone { 10function __construct() {} 11} 12 13$tz = new A(); 14var_dump($tz); 15try { 16var_dump(clone $tz); 17} catch (Exception $e) { 18 var_dump(get_class($e), $e->getMessage()); 19} 20 21?> 22--EXPECT-- 23object(A)#1 (1) { 24 ["valid"]=> 25 bool(false) 26} 27string(9) "Exception" 28string(39) "Cannot clone unconstructed IntlTimeZone" 28