Doc #60234 [NEW]: Setting libxml_use_internal_errors to false will also clear any existing errors
| From: | gordon at onlinehome dot de | Date: | Mon, 07 Nov 2011 12:40:19 +0000 |
| Subject: | Doc #60234 [NEW]: Setting libxml_use_internal_errors to false will also clear any existing errors | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7395@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.4.0beta2
Package: XML related
Bug Type: Documentation Problem
Bug description:Setting libxml_use_internal_errors to false will also clear any existing errors
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 bug report at https://bugs.php.net/bug.php?id=60234&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60234&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60234&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60234&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60234&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60234&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60234&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60234&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60234&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60234&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60234&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60234&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60234&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60234&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60234&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60234&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60234&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60234&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60234&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60234&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60234&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60234&r=mysqlcfg