Bug #67545 [Opn->Nab]: htmlentities is not working

From: Date: Mon, 30 Jun 2014 14:44:59 +0000
Subject: Bug #67545 [Opn->Nab]: htmlentities is not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186394@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67545&edit=1 ID: 67545 Updated by: johannes@php.net Reported by: benedict dot poppe at neuberger dot net Summary: htmlentities is not working -Status: Open +Status: Not a bug Type: Bug Package: Strings related Operating System: Linux PHP Version: 5.5.14 Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php User your browser's "view source" feature (Ctrl+U) or a command line PHP to see what happens. Previous Comments: ------------------------------------------------------------------------ [2014-06-30 11:25:14] benedict dot poppe at neuberger dot net Description: ------------ I have an webspace account with PHP 5.5 on www.hetzner.de. If i use the function "htmlentities", define a variable with htmlcode and commit the var as function- parameter, nothing happens. I start error_reporting, but no errors are displayed. If i use the htmlentities function twice on an var, i see the correct output. I tested it with different character sets and flags. See my testscript. The problem appears on an local linux ubuntu server with PHP Version 5.3.2-1ubuntu4.25 and on my webspace account with PHP Version 5.5 Test script: --------------- This Example -->> doesn't <<-- work on my system: $str = "A 'quote' is <b>bold</b>"; // Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt; echo htmlentities($str); This Example -->> work <<-- on my system: $str = "A 'quote' is <b>bold</b>"; // Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt; echo htmlentities(htmlentities($str)); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67545&edit=1

« previous php.bugs (#186394) next »