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