1--TEST--
2IntlTimeZone clone handler: basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$tz1 = IntlTimeZone::createTimeZone('Europe/Amsterdam');
10print_r($tz1);
11print_r(clone $tz1);
12
13//clone non-owned object
14$gmt = IntlTimeZone::getGMT();
15print_r($gmt);
16print_r(clone $gmt);
17
18?>
19--EXPECTF--
20IntlTimeZone Object
21(
22    [valid] => 1
23    [id] => Europe/Amsterdam
24    [rawOffset] => 3600000
25    [currentOffset] => %d
26)
27IntlTimeZone Object
28(
29    [valid] => 1
30    [id] => Europe/Amsterdam
31    [rawOffset] => 3600000
32    [currentOffset] => %d
33)
34IntlTimeZone Object
35(
36    [valid] => 1
37    [id] => GMT
38    [rawOffset] => 0
39    [currentOffset] => 0
40)
41IntlTimeZone Object
42(
43    [valid] => 1
44    [id] => GMT
45    [rawOffset] => 0
46    [currentOffset] => 0
47)
47