1--TEST-- 2IntlTimeZone clone handler: basic 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 11$tz1 = IntlTimeZone::createTimeZone('Europe/Amsterdam'); 12print_r($tz1); 13print_r(clone $tz1); 14 15//clone non-owned object 16$gmt = IntlTimeZone::getGMT(); 17print_r($gmt); 18print_r(clone $gmt); 19 20?> 21--EXPECTF-- 22IntlTimeZone Object 23( 24 [valid] => 1 25 [id] => Europe/Amsterdam 26 [rawOffset] => 3600000 27 [currentOffset] => %d 28) 29IntlTimeZone Object 30( 31 [valid] => 1 32 [id] => Europe/Amsterdam 33 [rawOffset] => 3600000 34 [currentOffset] => %d 35) 36IntlTimeZone Object 37( 38 [valid] => 1 39 [id] => GMT 40 [rawOffset] => 0 41 [currentOffset] => 0 42) 43IntlTimeZone Object 44( 45 [valid] => 1 46 [id] => GMT 47 [rawOffset] => 0 48 [currentOffset] => 0 49) 49