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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC