php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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");



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-20 14:47 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [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
ERROR
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC