php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24799 Warnings at pear.php.net
Submitted: 2003-07-25 01:27 UTC Modified: 2003-07-31 06:30 UTC
From: tony2001 at phpclub dot net Assigned: mj (profile)
Status: Closed Package: PEAR related
PHP Version: Irrelevant OS: doesn't matter
Private report: No CVE-ID: None
 [2003-07-25 01:27 UTC] tony2001 at phpclub dot net
Description:
------------
Multiple warnings at pear.php.net:
Warning: htmlspecialchars() [function.htmlspecialchars]: charset `KOI8-R' not supported, assuming iso-8859-1 in /usr/local/www/pearweb/include/pear-manual.php on line 107

Solution:
upgrade PHP to 4.3.2 - koi8-r was added in this version.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-25 01:29 UTC] mj@php.net
Can you tell us, for which URL you get this error?
 [2003-07-25 01:57 UTC] tony2001 at phpclub dot net
Yes, for example:
http://pear.php.net/manual/ru/pecl.imagick.php
Short examination shows that this warning can be found at any page of russian version of the manual.

And there is another one issue about manual:
english version of http://pear.php.net/manual/ru/pecl.imagick.php contains only words "Table of Contents" at the bottom, while russian version contains non-translated function reference. Is it ok?
 [2003-07-31 04:35 UTC] nicos@php.net
KOI8-R is supported since 4.3.0, we should upgrade?
 [2003-07-31 04:37 UTC] nicos@php.net
Here is a patch that could hide the warning until we fix the real problem:

Index: pear-manual.php
===================================================================
RCS file: /repository/pearweb/include/pear-manual.php,v
retrieving revision 1.21
diff -u -u -r1.21 pear-manual.php
--- pear-manual.php     28 May 2003 18:00:09 -0000      1.21
+++ pear-manual.php     31 Jul 2003 09:37:01 -0000
@@ -104,13 +104,13 @@

     echo '<tr><td>';
     if ($PREV[1]) {
-        print_link( $PREV[0] , make_image('caret-l.gif', 'previous') .  htmlspecialchars($PREV[1],ENT_QUOTES,$CHARSET) ) ;
+        print_link( $PREV[0] , make_image('caret-l.gif', 'previous') .  @htmlspecialchars($PREV[1],ENT_QUOTES,$CHARSET) ) ;
     }
     echo '<br /></td>';

     echo '<td align="right">';
     if ($NEXT[1]) {
-        print_link( $NEXT[0] , htmlspecialchars($NEXT[1],ENT_QUOTES,$CHARSET)  . make_image('caret-r.gif', 'next') ) ;
+        print_link( $NEXT[0] , @htmlspecialchars($NEXT[1],ENT_QUOTES,$CHARSET)  . make_image('caret-r.gif', 'next') ) ;
     }
     echo '<br /></td>';
     echo '</tr>';

 [2003-07-31 04:48 UTC] tony2001 at phpclub dot net
no, support of KOI8-R was added only in 4.3.2.
of course, @ is a possible solution, but not the best imho.
 [2003-07-31 04:57 UTC] nicos@php.net
It's already used in the same file and it was only forgot in 2 places.

Btw there is nothing else that can be used...
 [2003-07-31 05:03 UTC] tony2001 at phpclub dot net
>It's already used in the same file and it was only forgot in 2 places.
aha..
got it.

>Btw there is nothing else that can be used...
why upgrade is not acceptable solution?
 [2003-07-31 06:24 UTC] mj@php.net
We'll update PHP as soon as possible (or move to another machine, whatever comes next). For now the patch seems to be sufficient. (I'll apply it later.)
 [2003-07-31 06:24 UTC] mj@php.net
We'll update PHP as soon as possible (or move to another machine, whatever comes next). For now the patch seems to be sufficient. (I'll apply it later.)
 [2003-07-31 06:30 UTC] mj@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2014-02-28 17:16 UTC] dsp@php.net
Automatic comment on behalf of mj
Revision: http://git.php.net/?p=web/pecl.git;a=commit;h=337ec9ed4f7608fffdbe6f86b3798357320863eb
Log: * Fix #24799
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 19:03:37 2021 UTC