mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
46 lines
738 B
PHP
46 lines
738 B
PHP
--TEST--
|
|
IntlTimeZone clone handler: basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
$tz1 = IntlTimeZone::createTimeZone('Europe/Amsterdam');
|
|
print_r($tz1);
|
|
print_r(clone $tz1);
|
|
|
|
//clone non-owned object
|
|
$gmt = IntlTimeZone::getGMT();
|
|
print_r($gmt);
|
|
print_r(clone $gmt);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => Europe/Amsterdam
|
|
[rawOffset] => 3600000
|
|
[currentOffset] => %d
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => Europe/Amsterdam
|
|
[rawOffset] => 3600000
|
|
[currentOffset] => %d
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT
|
|
[rawOffset] => 0
|
|
[currentOffset] => 0
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT
|
|
[rawOffset] => 0
|
|
[currentOffset] => 0
|
|
)
|