|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-22 22:47 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
[2013-09-22 22:47 UTC] aharvey@php.net
[2013-09-24 15:01 UTC] oskar dot mothander at gmail dot com
-Status: Feedback
+Status: Closed
[2013-09-24 15:01 UTC] oskar dot mothander at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 17:00:02 2025 UTC |
Description: ------------ Calling simplexml_load_string() on invalid xml will output Warnings even though you've been a good developer and turned these OFF on live environment. Using "libxml_use_internal_errors(true);" fixes the problem but shouldn't be nessesary. This caused my site to display Warnings live. Affected versions: PHP 5.4.3 (not in the list above?) PHP 5.3.8 (VC9 X86 32bit thread safe) + PEAR Test script: --------------- ini_set("display_errors", false); simplexml_load_string('<apa>'); // Will still output Warnings even though they are off. Expected result: ---------------- Empty result Actual result: -------------- Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Premature end of data in tag apa line 1 on line 2 Warning: simplexml_load_string() [function.simplexml-load-string]: <apa> on line 2 Warning: simplexml_load_string() [function.simplexml-load-string]: ^ on line 2