Doc #65390 [NEW]: default argument of htmlentities() wrong in function signature in documentation

From: Date: Mon, 05 Aug 2013 09:22:49 +0000
Subject: Doc #65390 [NEW]: default argument of htmlentities() wrong in function signature in documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10138@lists.php.net to get a copy of this message
From: l dot felber at gmx dot ch Operating system: PHP version: 5.5.1 Package: *Unicode Issues Bug Type: Documentation Problem Bug description:default argument of htmlentities() wrong in function signature in documentation Description: ------------ --- From manual page: http://www.php.net/function.htmlentities#refsect1- function.htmlentities-description --- There is no actual bug, but the documentation on http://www.php.net/manual/en/function.htmlentities is inconsistent: The default value of the $encoding parameter of the htmlentities function is in the signature on top 'UTF-8' and in the encoding-parameter description 'ISO-8859- 1' (which seems to be the actual default) Expected result: ---------------- Default value should be shown as 'ISO-8859-1' in function signature. Well actually you should change the default in the implementation to 'UTF-8' (and maybe completely remove all support for all other encodings), but thats probably another issue ;-P -- Edit bug report at https://bugs.php.net/bug.php?id=65390&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65390&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65390&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65390&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65390&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65390&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65390&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65390&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65390&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65390&r=support Expected behavior: https://bugs.php.net/fix.php?id=65390&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65390&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65390&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65390&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65390&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65390&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65390&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65390&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65390&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65390&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65390&r=mysqlcfg

« previous php.doc.bugs (#10138) next »