]> granicus.if.org Git - php/commitdiff
MFH(r-1.3): fixed bogus skip condition
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 29 Apr 2003 13:04:57 +0000 (13:04 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 29 Apr 2003 13:04:57 +0000 (13:04 +0000)
ext/standard/tests/strings/htmlentities16.phpt

index d11a302ac75752d128fc174867ab09024769f8e4..071a0e2fa8acb554a69502de62d21de6059a24de 100644 (file)
@@ -5,11 +5,9 @@ output_handler=
 --SKIPIF--
 <?php
        extension_loaded("mbstring") or die("skip mbstring not available\n");
-       mb_internal_encoding('cp1251');
-       $php_errormsg = NULL;
-       @htmlentities("\x88\xa9\xd2\xcf\xd3\xcb\xcf\xdb\xce\xd9\xca", ENT_QUOTES, '');
-       if ($php_errormsg) {
-               die("skip cp1251 chracter set is not supported on this platform.\n");
+       if (!mb_internal_encoding('cp1251') ||
+               @htmlentities("\x88\xa9\xd2\xcf\xd3\xcb\xcf\xdb\xce\xd9\xca", ENT_QUOTES, '') == '') {
+               die("skip cp1251 chracter set is not available in this build.\n");
        }
 ?>
 --FILE--