#46746 [Opn->Ver]: xmlrpc_decode_request outputs non-suppressable error when given bad data
| From: | jani@php.net | Date: | Mon, 08 Dec 2008 11:50:48 +0000 |
| Subject: | #46746 [Opn->Ver]: xmlrpc_decode_request outputs non-suppressable error when given bad data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131744@lists.php.net to get a copy of this message | ||
ID: 46746
Updated by: jani@php.net
Reported By: pickscrape at gmail dot com
-Status: Open
+Status: Verified
-Bug Type: Output Control
+Bug Type: XMLRPC-EPI related
-Operating System: Linux
+Operating System: *
-PHP Version: 5.2.6
+PHP Version: 5CVS,6CVS (2008-12-08)
New Comment:
ext/xmlrpc/libxmlrpc/xml_element.c:729 has fprintf() which dumps the
errors to STDERR.
Previous Comments:
------------------------------------------------------------------------
[2008-12-04 00:05:17] pickscrape at gmail dot com
Description:
------------
When calling xmlrpc_decode_request with invalid XML data, the following
error is output to STDERR:
expat reports error code 4
description: Empty document
line: 1
column: 1
byte index: 0
total bytes: 0
data beginning 0 before byte index: dfsdffsd
There seems to be no way to turn it off: I want to be able to handler
the error myself, and do not want the error message cluttering the
output needlessly.
Reproduce code:
---------------
<?php
x = '';
o = xmlrpc_decode_request('dfsdffsd', $x);
?>
Expected result:
----------------
For there to be some way to turn this error message off, or have it
redirected to a variable or accessible via some library call.
Actual result:
--------------
expat reports error code 4
description: Empty document
line: 1
column: 1
byte index: 0
total bytes: 0
data beginning 0 before byte index: dfsdffsd
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46746&edit=1