]> granicus.if.org Git - php/commitdiff
hide possible warnings
authorMarcus Boerger <helly@php.net>
Fri, 8 Nov 2002 17:03:06 +0000 (17:03 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 8 Nov 2002 17:03:06 +0000 (17:03 +0000)
#Why should one initialize $php_errormsg to NULL
#It would be easier to have it initialised by the system, wouldn't it?

ext/standard/tests/strings/htmlentities06.phpt

index 647d7ecc63ad997ae0cbc595a058d9e539f7fa9c..44d1466da9b680be8f76a46a1e4c8e9a77cdd2a6 100644 (file)
@@ -5,9 +5,9 @@ output_handler=
 --SKIPIF--
 <?php
        extension_loaded("mbstring") or die("skip mbstring not available\n");
-       mb_internal_encoding('ISO-8859-15');
+       @mb_internal_encoding('ISO-8859-15');
        @htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '');
-       if ($php_errormsg) {
+       if (@$php_errormsg) {
                die("skip ISO-8859-15 chracter set is not supported on this platform.\n");
        }
 ?>