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==DONE== 22--EXPECTF-- 23IntlTimeZone Object 24( 25 [valid] => 1 26 [id] => Europe/Amsterdam 27 [rawOffset] => 3600000 28 [currentOffset] => %d 29) 30IntlTimeZone Object 31( 32 [valid] => 1 33 [id] => Europe/Amsterdam 34 [rawOffset] => 3600000 35 [currentOffset] => %d 36) 37IntlTimeZone Object 38( 39 [valid] => 1 40 [id] => GMT 41 [rawOffset] => 0 42 [currentOffset] => 0 43) 44IntlTimeZone Object 45( 46 [valid] => 1 47 [id] => GMT 48 [rawOffset] => 0 49 [currentOffset] => 0 50) 51==DONE== 51