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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 + 38 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 14:01:31 2024 UTC