summaryrefslogtreecommitdiff
path: root/ext/intl/tests/locale_bug72658.phpt
blob: 877f0b25f4f261b703a93c6358a5a0e4c9005193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #72658 Locale::lookup() / locale_lookup() hangs if no match found
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php

var_dump(
	Locale::lookup(['en-Latn-US', 'sl', 'sl-IT'], 'en-US', true, 'de-DE'),
	Locale::lookup(['en-Latn-US', 'sl', 'sl-IT'], 'en-US', false, 'de-DE')
);

?>
==DONE==
--EXPECT--
string(5) "de-DE"
string(5) "de-DE"
==DONE==