Re: cvs: php4 /ext/standard/tests/strings htmlentities06.phpt
| From: | Ilia A. | Date: | Fri, 08 Nov 2002 17:15:21 +0000 |
| Subject: | Re: cvs: php4 /ext/standard/tests/strings htmlentities06.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15911@lists.php.net to get a copy of this message | ||
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 EDT
>
> Modified files:
> /php4/ext/standard/tests/strings htmlentities06.phpt
> Log:
> 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:03
> 2002 +++ php4/ext/standard/tests/strings/htmlentities06.phpt Fri Nov 8
> 12:03:06 2002 @@ -5,9 +5,9 @@
> --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"); }
> ?>