xref: /php-src/ext/intl/tests/locale_bug72658.phpt (revision 74859783)
1--TEST--
2Bug #72658 Locale::lookup() / locale_lookup() hangs if no match found
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8var_dump(
9    Locale::lookup(['en-Latn-US', 'sl', 'sl-IT'], 'en-US', true, 'de-DE'),
10    Locale::lookup(['en-Latn-US', 'sl', 'sl-IT'], 'en-US', false, 'de-DE')
11);
12
13?>
14--EXPECT--
15string(5) "de-DE"
16string(5) "de-DE"
17