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

From: Date: Mon, 10 Sep 2001 06:40:09 +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-65624@lists.php.net to get a copy of this message
ID: 8922 Updated by: joey Reported By: colin@easydns.com 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: Sterling beat me to it, but I still got an email... Removing myself from "Assigned" Previous Comments: ------------------------------------------------------------------------ [2001-09-09 05:53:41] sterling@php.net Fixed in CVS. ------------------------------------------------------------------------ [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 (#65624) next »