|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8922 @xmldoc(...) doesn't quite suppress errors
Submitted: 2001-01-25 20:20 UTC Modified: 2001-09-10 02:40 UTC
From: colin at easydns dot com Assigned: joey (profile)
Status: Closed Package: DOM XML related
PHP Version: 4.0 Latest CVS (25/01/2001) OS: RH 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: colin at easydns dot com
New email:
PHP Version: OS:


 [2001-01-25 20:20 UTC] colin at easydns dot com
Take the following code:

$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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 05:53 UTC]
Fixed in CVS.
 [2001-09-10 02:40 UTC]
Sterling beat me to it, but I still got an email...
Removing myself from "Assigned"
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 29 00:01:24 2023 UTC