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== 19