mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
17 lines
463 B
PHP
17 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
|