php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60234 Setting libxml_use_internal_errors to false will also clear any existing errors
Submitted: 2011-11-07 12:40 UTC Modified: 2011-11-09 15:47 UTC
From: gordon at onlinehome dot de Assigned: gooh (profile)
Status: Closed Package: XML related
PHP Version: 5.4.0beta2 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gordon at onlinehome dot de
New email:
PHP Version: OS:

 

 [2011-11-07 12:40 UTC] gordon at onlinehome dot de
Description:
------------
---
From manual page: http://www.php.net/function.libxml-use-internal-errors#refsect1-function.libxml-use-internal-errors-description
---

According to http://lxr.php.net/opengrok/xref/PHP_5_3/ext/libxml/libxml.c#713 doing libxml_use_internal_errors(false) will also clear the error buffer. While this is convenient, it is also a non-obvious side-effect, especially since there is libxml_clear_errors() for that purpose. The side-effect should be documented.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-08 16:51 UTC] gooh@php.net
-Assigned To: +Assigned To: gooh
 [2011-11-09 15:38 UTC] gooh@php.net
Automatic comment from SVN on behalf of gooh
Revision: http://svn.php.net/viewvc/?view=revision&revision=318950
Log: fixes #60234 - Setting libxml_use_internal_errors to false will also clear any existing errors
 [2011-11-09 15:47 UTC] gooh@php.net
-Status: Assigned +Status: Closed
 [2011-11-09 15:47 UTC] gooh@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 18:00:02 2026 UTC