Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 7086

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Unserializes a WDDX packet</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.wddx-add-vars.html">wddx_add_vars</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.wddx-packet-end.html">wddx_packet_end</a></div>
 <div class="up"><a href="ref.wddx.html">WDDX Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.wddx-deserialize" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">wddx_deserialize</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">wddx_deserialize</span> &mdash; <span class="dc-title">Unserializes a WDDX packet</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.wddx-deserialize-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>wddx_deserialize</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$packet</code></span>
   )</div>

  <p class="para rdfs-comment">
   Unserializes a WDDX <code class="parameter">packet</code>.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">
    Do not pass untrusted user input to <span class="function"><strong>wddx_deserialize()</strong></span>.
    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
    <span class="function"><a href="function.json-decode.html" class="function">json_decode()</a></span> and <span class="function"><a href="function.json-encode.html" class="function">json_encode()</a></span>) if
    you need to pass serialized data to the user.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.wddx-deserialize-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">packet</code></dt>

     <dd>

      <p class="para">
       A WDDX packet, as a string or stream.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.wddx-deserialize-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the deserialized value which can be a string, a number or an
   array. Note that structures are deserialized into associative arrays.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.wddx-add-vars.html">wddx_add_vars</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.wddx-packet-end.html">wddx_packet_end</a></div>
 <div class="up"><a href="ref.wddx.html">WDDX Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>