[PATCH] don't override error_reporting() in module dom

php.internals

Nico Sabbi

19 years ago
Hi, this patch removes the prevaricative code in ext/dom/document.c that forcibly reports errors in xml data overriding the error_reporting value set by the user. If the user intentionally sets $dom->recover to true and disables E_WARNING he obviously wants php to shut up in all cases, even when the xml fed to dom is broken; php should obediently comply, not take initiatives on its own accord. Please, consider this patch for inclusion in HEAD. Nico