mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
16 lines
463 B
PHP
16 lines
463 B
PHP
--TEST--
|
|
IntlTimeZone::fromDateTimeZone(): argument errors
|
|
--INI--
|
|
date.timezone=Atlantic/Azores
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
$dt = new DateTime('2012-08-01 00:00:00 WEST');
|
|
var_dump(IntlTimeZone::fromDateTimeZone($dt->getTimeZone()));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: IntlTimeZone::fromDateTimeZone(): intltz_from_date_time_zone: time zone id 'WEST' extracted from ext/date DateTimeZone not recognized in %s on line %d
|
|
NULL
|