|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37477 htmlentities problem on another greek expression
Submitted: 2006-05-17 15:31 UTC Modified: 2006-06-28 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: d dot gourgues at neuf dot fr Assigned:
Status: No Feedback Package: Strings related
PHP Version: 5.1.4 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: d dot gourgues at neuf dot fr
New email:
PHP Version: OS:


 [2006-05-17 15:31 UTC] d dot gourgues at neuf dot fr
Hi, I've some expression in database in UTF8.
When i try to use the htmlentities functions

ex : htmlentities("zoo...", ENT_QUOTES, "UTF-8");

the script returns sometimes nothing.

PS : I've tested on a PHP 5.1.2-1.dotdeb.2 (and i can't upgrade at work)... i will try at home with a PHP 5.1.4 version

Reproduce code:
// works always
$str = " ";
echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8");

// works sometimes
$str = " ";
echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-20 14:47 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-06-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-04-27 22:19 UTC] bitagenda at gmail dot com
Add to this problem that
htmlentities expects at most 3 parameters, 4 given

This is in 
PHP Version 5.2.0-8+etch10 (Debian) a php BUG of course
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Oct 03 02:01:24 2023 UTC