mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
19 lines
428 B
PHP
19 lines
428 B
PHP
--TEST--
|
|
IntlDateFormat constructor failure
|
|
--INI--
|
|
date.timezone=Mars/Utopia_Planitia
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
new \IntlDateFormatter('en_US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL);
|
|
echo "Wat?";
|
|
} catch (\IntlException $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
IntlDateFormatter::__construct(): Invalid date.timezone value 'Mars/Utopia_Planitia', we selected the timezone 'UTC' for now.
|