|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 + 5 = ?
Subscribe to this entry?

 [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: Sat Sep 30 19:01:25 2023 UTC