diff options
| author | Anatol Belski <ab@php.net> | 2016-04-08 12:29:40 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2016-04-08 12:31:19 +0200 |
| commit | 1541a55a4f9207c346a805c2b8d090f16d07f841 (patch) | |
| tree | 3a4626416ad50b7292f9eba6e0f18dad4e2dc698 /ext/intl/tests | |
| parent | f7600e17cb8eb6c5dad8709ac1f4c76f0f28f207 (diff) | |
| download | php-git-1541a55a4f9207c346a805c2b8d090f16d07f841.tar.gz | |
Fixed bug #68893 Stackoverflow in datefmt_create
Diffstat (limited to 'ext/intl/tests')
| -rw-r--r-- | ext/intl/tests/dateformat_bug68893.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/intl/tests/dateformat_bug68893.phpt b/ext/intl/tests/dateformat_bug68893.phpt new file mode 100644 index 0000000000..b3faf54342 --- /dev/null +++ b/ext/intl/tests/dateformat_bug68893.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #68893 Stackoverflow in datefmt_create +--SKIPIF-- +<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> +--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" |
