php.net |  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:
MUST BE VALID
Solve the problem:
49 - 4 = ?
Subscribe to this entry?

 
 [2001-01-25 20:20 UTC] colin at easydns dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 05:53 UTC] sterling@php.net
Fixed in CVS.
 [2001-09-10 02:40 UTC] joey@php.net
Sterling beat me to it, but I still got an email...
Removing myself from "Assigned"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC