Bug #8922 Updated: @xmldoc(...) doesn't quite suppress errors

From: Date: Sun, 09 Sep 2001 09:53:41 +0000
Subject: Bug #8922 Updated: @xmldoc(...) doesn't quite suppress errors
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65539@lists.php.net to get a copy of this message
ID: 8922 Updated by: sterling Reported By: colin@easydns.com Old Status: Assigned Status: Closed Bug Type: DOM XML related Operating System: RH 7.0 PHP Version: 4.0 Latest CVS (25/01/2001) Assigned To: joey New Comment: Fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2001-01-25 20:20:45] colin@easydns.com 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 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=8922&edit=1

« previous php.dev (#65539) next »