php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13469 get_html_translation_table broken in PHP4.0.6 Apache Module (ONLY)
Submitted: 2001-09-27 12:16 UTC Modified: 2002-06-11 09:11 UTC
From: jbperez808 at yahoo dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0.6 OS: Windows NT 5.0 build 2195
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jbperez808 at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-09-27 12:16 UTC] jbperez808 at yahoo dot com
<?php
$trans=get_html_translation_table(HTML_SPECIALCHARS,ENT_QUOTES);
$trans2=array_flip($trans);

foreach ($trans2 as $item) {
	print $item." - ". $trans[$item]."<br />";
}

?>

returns:

& - & 
' - '
" - "
< - <
> - >

instead of 

& - &amp;
' - &#039;
" - &quot;
< - &lt;
> - &gt;

The CGI version works fine, but the Apache module version doesn't.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-11 09:11 UTC] edink@php.net
Works just fine. You were probably looking at the output in the browser where those entities would be dispayed as you describe. View source would probably reveal the correct output.

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 18:01:26 2019 UTC