Doc #55547 [Opn->Csd]: Undocumented flags for htmlentities()
| From: | nikic@php.net | Date: | Sat, 17 Sep 2011 11:38:17 +0000 |
| Subject: | Doc #55547 [Opn->Csd]: Undocumented flags for htmlentities() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7228@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55547&edit=1
ID: 55547
Updated by: nikic@php.net
Reported by: stas@php.net
Summary: Undocumented flags for htmlentities()
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Strings related
Operating System: *
PHP Version: 5.4.0alpha3
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
===
I updated the flags list for htmlentities and htmlspecialchars.
I though did not add the first two flags (HTML_SPECIALCHARS and HTML_ENTITIES). They don't seem
to have any effect / are used only internally. Maybe they were added accidentally?
Previous Comments:
------------------------------------------------------------------------
[2011-09-17 11:32:12] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=316908
Log: Fix Doc Bug #55547: Undocumented flags for htmlentities()
------------------------------------------------------------------------
[2011-08-31 06:45:03] stas@php.net
Description:
------------
Following flags exist for htmlentities:
REGISTER_LONG_CONSTANT("HTML_SPECIALCHARS", HTML_SPECIALCHARS,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("HTML_ENTITIES", HTML_ENTITIES,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_COMPAT", ENT_COMPAT,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_QUOTES", ENT_QUOTES,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_NOQUOTES", ENT_NOQUOTES,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_IGNORE", ENT_IGNORE,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_SUBSTITUTE", ENT_SUBSTITUTE,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_DISALLOWED", ENT_DISALLOWED,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_HTML401", ENT_HTML401,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_XML1", ENT_XML1, CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_XHTML", ENT_XHTML,
CONST_PERSISTENT|CONST_CS);
REGISTER_LONG_CONSTANT("ENT_HTML5", ENT_HTML5,
CONST_PERSISTENT|CONST_CS);
Only four of them are documented.
Expected result:
----------------
All flags documented ;)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55547&edit=1