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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC