]> granicus.if.org Git - php/commitdiff
- Fixed test htmlentities15.phpt.
authorGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 31 Aug 2011 06:32:05 +0000 (06:32 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 31 Aug 2011 06:32:05 +0000 (06:32 +0000)
ext/standard/tests/strings/htmlentities15.phpt

index f45be118c3ebac27799f04894eab135e943a9255..54c1b060171fa637669ce5e5249f3edc77644ae3 100644 (file)
@@ -11,6 +11,9 @@ if (!$result || preg_match('/koi8/i', setlocale(LC_CTYPE, 0)) == 0) {
        die("skip setlocale() failed\n");
 }
 ?>
+--COMMENT--
+As of PHP 5.4, htmlentities() no longer makes replacements with numerical
+entities. Hence, for this input there's no substitution.
 --FILE--
 <?php
 setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
@@ -19,4 +22,4 @@ var_dump($str, htmlentities($str, ENT_QUOTES, ''));
 ?>
 --EXPECT--
 string(9) "ÒÏÓËÏÛÎÙÊ"
-string(63) "&#1088;&#1086;&#1089;&#1082;&#1086;&#1096;&#1085;&#1099;&#1081;"
+string(9) "ÒÏÓËÏÛÎÙÊ"