Bug #61374 [Asn->Csd]: html_entity_decode tries to decode code points that don't exist in ISO-8859-1
| From: | cataphract@php.net | Date: | Tue, 13 Mar 2012 18:08:27 +0000 |
| Subject: | Bug #61374 [Asn->Csd]: html_entity_decode tries to decode code points that don't exist in ISO-8859-1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168412@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61374&edit=1
ID: 61374
Updated by: cataphract@php.net
Reported by: cataphract@php.net
Summary: html_entity_decode tries to decode code points that
don't exist in ISO-8859-1
-Status: Assigned
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: Irrelevant
PHP Version: 5.4SVN-2012-03-13 (SVN)
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Fixed in SVN.
Previous Comments:
------------------------------------------------------------------------
[2012-03-13 18:08:20] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=324199
Log: - Fixed bug #61374: html_entity_decode tries to decode code points that don't
exist in ISO-8859-1.
------------------------------------------------------------------------
[2012-03-13 15:13:38] cataphract@php.net
Description:
------------
html_entity_decode tries to decode code points that don't exist in ISO-8859-1. The result is
that the codepoint(s) being written mod 256.
Test script:
---------------
<?php
echo html_entity_decode('Œ', 0, 'ISO-8859-1');
Expected result:
----------------
Œ
Actual result:
--------------
R
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61374&edit=1