note 1975 deleted from function.wddx-deserialize by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 15:58:05 +0000 |
| Subject: | note 1975 deleted from function.wddx-deserialize by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134117@lists.php.net to get a copy of this message | ||
Note Submitter: djm at web dot eng dot us dot uu dot net
----
At least in PHP 4.0B2, this function kills your PHP script if you feed it something that
doesn't contain a well-formed WDDX packet. For example, this program:
<pre>
$value = wddx_deserialize("foo");
</pre>
doesn't return an error code, but instead you get
this back from apache:
<pre>
<HTML>
<HEAD>
<TITLE>
An Error Occurred
</TITLE>
</HEAD>
<BODY>
<H1>An Error Occurred</h1>
500 - Unexpected EOF.
</BODY>
</HTML>
</pre>
This happens even if you prefix the command with @,
which turns off error reporting.