1--TEST-- 2htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) 3--SKIPIF-- 4<?php 5$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); 6if (!$result) { 7 die("skip setlocale() failed\n"); 8} 9?> 10--INI-- 11output_handler= 12default_charset= 13internal_encoding= 14--FILE-- 15<?php 16// Locale-based encoding guessing no longer works. 17setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); 18var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '')); 19?> 20--EXPECT-- 21string(0) "" 22