<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.wddx-deserialize" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>wddx_deserialize</refname>
  <refpurpose>Unserializes a WDDX packet</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
  &warn.removed.function-7-4-0;
 </refsynopsisdiv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>mixed</type><methodname>wddx_deserialize</methodname>
   <methodparam><type>string</type><parameter>packet</parameter></methodparam>
  </methodsynopsis>
  <para>
   Unserializes a WDDX <parameter>packet</parameter>.
  </para>
  <warning>
   <para>
    Do not pass untrusted user input to <function>wddx_deserialize</function>.
    Unserialization can result in code being loaded and executed due to object
    instantiation and autoloading, and a malicious user may be able to exploit
    this. Use a safe, standard data interchange format such as JSON (via
    <function>json_decode</function> and <function>json_encode</function>) if
    you need to pass serialized data to the user.
   </para>
  </warning>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>packet</parameter></term>
     <listitem>
      <para>
       A WDDX packet, as a string or stream.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns the deserialized value which can be a string, a number or an
   array. Note that structures are deserialized into associative arrays.
  </para>
 </refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
