Doc #66264 [NEW]: htmlspecialchars_decode() does not take an encoding argument.
| From: | lyle dot mantooth at primasupply dot com | Date: | Wed, 11 Dec 2013 14:41:22 +0000 |
| Subject: | Doc #66264 [NEW]: htmlspecialchars_decode() does not take an encoding argument. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10696@lists.php.net to get a copy of this message | ||
From: lyle dot mantooth at primasupply dot com
Operating system: Linux Mint
PHP version: 5.4.22
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:htmlspecialchars_decode() does not take an encoding argument.
Description:
------------
---
From manual page: http://www.php.net/function.htmlspecialchars-decode
---
Of all the functions that handle converting HTML entities to and from
their character equivalents, htmlspecialchars_decode() is the only one
that doesn't seem to care about the string encoding.
* htmlspecialchars(), $encoding parameter added in PHP 4.1.0.
* htmlentities(), $encoding parameter added in PHP 4.1.0.
* html_entity_decode(), function added in PHP 4.3.0, presumably with
$encoding parameter from the beginning.
* hmtlspecialchars_decode(), function added in PHP 5.1.0, but no
$encoding parameter.
This may be only a documentation problem, but if it isn't, then it's a
real problem working with this API without even knowing what the default
encoding is. Did it change in PHP 5.4.0 for this function, like it did
for the others? I still don't know.
--
Edit bug report at https://bugs.php.net/bug.php?id=66264&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66264&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66264&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66264&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66264&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66264&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66264&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66264&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66264&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66264&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66264&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66264&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66264&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66264&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66264&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66264&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66264&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66264&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66264&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66264&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66264&r=mysqlcfg