source: src/router/php7/ext/intl/tests/locale_bug72658.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 389 bytes
Line 
1--TEST--
2Bug #72658 Locale::lookup() / locale_lookup() hangs if no match found
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
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==DONE==
15--EXPECT--
16string(5) "de-DE"
17string(5) "de-DE"
18==DONE==
Note: See TracBrowser for help on using the repository browser.