Doc #60234 [Asn->Csd]: Setting libxml_use_internal_errors to false will also clear any existing errors

From: Date: Wed, 09 Nov 2011 15:47:20 +0000
Subject: Doc #60234 [Asn->Csd]: Setting libxml_use_internal_errors to false will also clear any existing errors
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7407@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60234&edit=1 ID: 60234 Updated by: gooh@php.net Reported by: gordon at onlinehome dot de Summary: Setting libxml_use_internal_errors to false will also clear any existing errors -Status: Assigned +Status: Closed Type: Documentation Problem Package: XML related PHP Version: 5.4.0beta2 Assigned To: gooh 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. Previous Comments: ------------------------------------------------------------------------ [2011-11-09 15:38:19] 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-07 12:40:18] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60234&edit=1

« previous php.doc.bugs (#7407) next »