|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-09 05:53 UTC] sterling@php.net
[2001-09-10 02:40 UTC] joey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
Take the following code: <?php $xml = '<?xml version="1.0"?><foo><bar></foo>'; $doc = @xmldoc($xml); if (!$doc) { echo "invalid xml\n"; } ?> If you run it from the shell, the parser spits a bunch of messages out to STDOUT. It would be nice if these could be repressed and/or captured easily by the script somehow (in $php_err_msg or something). - Colin