php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64147 A few missing constants.
Submitted: 2013-02-04 21:53 UTC Modified: 2013-02-04 21:56 UTC
From: superspring at gmail dot com Assigned:
Status: Not a bug Package: *XML functions
PHP Version: 5.3.21 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 29 = ?
Subscribe to this entry?

 
 [2013-02-04 21:53 UTC] superspring at gmail dot com
Description:
------------
I am unable to find the constants
- ENT_SUBSTITUTE
- ENT_DISALLOWED
- ENT_HTML401
- ENT_XML1
- ENT_XHTML
- ENT_HTML5
As used in htmlentities.

Test script:
---------------
echo htmlentities('example text', ENT_XHTML);

Expected result:
----------------
Not to throw a warning.

Actual result:
--------------
A warning is thrown.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-04 21:56 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 [2013-02-04 21:56 UTC] rasmus@php.net
The docs clearly state that these were added in PHP 5.4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC