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
 [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

Pull Requests

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: Sat Dec 21 14:01:32 2024 UTC