1--TEST-- 2GH-9008 (mb_detect_encoding(): wrong results with null $encodings) 3--EXTENSIONS-- 4mbstring 5--FILE-- 6<?php 7$string = "<?php 8 9function test() 10{ 11 12} 13"; 14 15mb_detect_order(["ASCII", "UUENCODE"]); 16 17var_dump( 18 mb_detect_encoding($string, null, true), 19 mb_detect_encoding($string, mb_detect_order(), true), 20); 21?> 22--EXPECT-- 23string(5) "ASCII" 24string(5) "ASCII" 25