php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66099 Misleading documentation
Submitted: 2013-11-15 08:07 UTC Modified: 2013-11-15 08:09 UTC
From: yakoup46 at yahoo dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
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: yakoup46 at yahoo dot com
New email:
PHP Version: OS:

 

 [2013-11-15 08:07 UTC] yakoup46 at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/function.htmlentities#refsect1-function.htmlentities-description
---

string htmlentities ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = 'UTF-8' [, bool $double_encode = true ]]] )

suggests that the default for $encoding is 'UTF-8' when in actuality it is 'ISO-8859-1'. I realize later this is documented.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-15 08:09 UTC] yakoup46 at yahoo dot com
-Status: Open +Status: Closed
 [2013-11-15 08:09 UTC] yakoup46 at yahoo dot com
I am at fault misread change log.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 22:01:26 2025 UTC