Bug #67545 [NEW]: htmlentities is not working

From: Date: Mon, 30 Jun 2014 11:25:15 +0000
Subject: Bug #67545 [NEW]: htmlentities is not working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186391@lists.php.net to get a copy of this message
From: benedict dot poppe at neuberger dot net Operating system: Linux PHP version: 5.5.14 Package: Strings related Bug Type: Bug Bug description:htmlentities is not working 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 bug report at https://bugs.php.net/bug.php?id=67545&edit=1 --

« previous php.bugs (#186391) next »