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==DONE==
25--EXPECT--
26object(A)#1 (1) {
27  ["valid"]=>
28  bool(false)
29}
30string(9) "Exception"
31string(39) "Cannot clone unconstructed IntlTimeZone"
32==DONE==
32