php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61907 XML Error Codes constants should list integer value
Submitted: 2012-05-02 15:54 UTC Modified: 2017-01-28 12:05 UTC
From: gohanman at gmail dot com Assigned:
Status: Open Package: XML related
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gohanman at gmail dot com
New email:
PHP Version: OS:

 

 [2012-05-02 15:54 UTC] gohanman at gmail dot com
Description:
------------
I'm getting an error code of 9 from xml_get_error_code(). The documentation @ http://www.php.net/manual/en/xml.error-codes.php doesn't tell me what constant corresponds to 9.

Obviously I could just write:
if (xml_get_error_code($parser) == 9)

But for code readability and/or future proofing it would be nice to use the proper constant. The current documentation doesn't give me enough info to do that.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:05 UTC] cmb@php.net
-Package: Documentation problem +Package: XML related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC