Re: cvs: php4 /ext/standard/tests/strings htmlentities06.phpt
| From: | (Marcus Börger) | Date: | Fri, 08 Nov 2002 17:23:41 +0000 |
| Subject: | Re: cvs: php4 /ext/standard/tests/strings htmlentities06.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15912@lists.php.net to get a copy of this message | ||
Thats clear.
My comment had a different background: When there is no error until
access to $php_errormsg you will receive your warning then. Thats
why i used if(@$php_errormsg) ...
marcus
At 18:15 08.11.2002, Ilia A. wrote:
We need to set it to NULL because it may be already set by another PHP operation prior to htmlentities(). Ilia On November 8, 2002 12:03 pm, Marcus Boerger wrote:helly Fri Nov 8 12:03:06 2002 EDTModified files:/php4/ext/standard/tests/strings htmlentities06.phptLog: hide possible warnings #Why should one initialize $php_errormsg to NULL #It would be easier to have it initialised by the system, wouldn't it? Index: php4/ext/standard/tests/strings/htmlentities06.phpt diff -u php4/ext/standard/tests/strings/htmlentities06.phpt:1.3 php4/ext/standard/tests/strings/htmlentities06.phpt:1.4 ---php4/ext/standard/tests/strings/htmlentities06.phpt:1.3 Thu Nov 7 20:12:032002 +++ php4/ext/standard/tests/strings/htmlentities06.phpt Fri Nov 8 12:03:06 2002 @@ -5,9 +5,9 @@ --SKIPIF-- <?phpextension_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 thisplatform.\n"); } ?> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php