1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext/intl/tests/dateformat_bug68893.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

20 lines
444 B
PHP

--TEST--
Bug #68893 Stackoverflow in datefmt_create
--EXTENSIONS--
intl
--FILE--
<?php
$f = datefmt_create("en_us", -10000000, 1);
var_dump($f, intl_get_error_message());
$f = datefmt_create("en_us", 1, -10000000);
var_dump($f, intl_get_error_message());
?>
--EXPECT--
NULL
string(67) "datefmt_create: invalid date format style: U_ILLEGAL_ARGUMENT_ERROR"
NULL
string(67) "datefmt_create: invalid time format style: U_ILLEGAL_ARGUMENT_ERROR"