#46746 [NEW]: xmlrpc_decode_request outputs non-suppressable error when given bad data
| From: | pickscrape at gmail dot com | Date: | Thu, 04 Dec 2008 00:05:18 +0000 |
| Subject: | #46746 [NEW]: xmlrpc_decode_request outputs non-suppressable error when given bad data | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131579@lists.php.net to get a copy of this message | ||
From: pickscrape at gmail dot com
Operating system: Linux
PHP version: 5.2.6
PHP Bug Type: Output Control
Bug description: xmlrpc_decode_request outputs non-suppressable error when given bad data
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 bug report at http://bugs.php.net/?id=46746&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46746&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46746&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46746&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46746&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46746&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46746&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46746&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46746&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46746&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46746&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46746&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46746&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46746&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46746&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46746&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46746&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46746&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46746&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46746&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46746&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46746&r=mysqlcfg