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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: superspring at gmail dot com
New email:
PHP Version: OS:

 

 [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: Wed Apr 24 01:01:31 2024 UTC