<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration56.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'migration56.changed-functions.php',
    1 => 'Changed functions',
    2 => 'Changed functions',
  ),
  'up' => 
  array (
    0 => 'migration56.php',
    1 => 'Migrating from PHP 5.5.x to PHP 5.6.x',
  ),
  'prev' => 
  array (
    0 => 'migration56.deprecated.php',
    1 => 'Deprecated features in PHP 5.6.x',
  ),
  'next' => 
  array (
    0 => 'migration56.new-functions.php',
    1 => 'New functions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/migration56/changed-functions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration56.changed-functions" class="sect1">
 <h2 class="title">Changed functions</h2>

 <div class="sect2" id="migration56.changed-functions.core">
  <h3 class="title">PHP Core</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.crypt.php" class="function">crypt()</a></span> will now raise an
     <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong> error if the <code class="parameter">salt</code>
     parameter is omitted.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.substr-compare.php" class="function">substr_compare()</a></span> will now accept <code class="literal">0</code>
     for its <code class="parameter">length</code> parameter.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.unserialize.php" class="function">unserialize()</a></span> will now fail if passed serialised data
     that has been manipulated to attempt to instantiate an object without
     calling its constructor.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.curl">
  <h3 class="title"><a href="book.curl.php" class="link">cURL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     Uploads using the <code class="literal">@file</code> syntax are now only supported
     if the <strong><code><a href="curl.constants.php#constant.curlopt-safe-upload">CURLOPT_SAFE_UPLOAD</a></code></strong> option is set to
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>. <span class="classname"><a href="class.curlfile.php" class="classname">CURLFile</a></span> should be used instead.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.mcrypt">
  <h3 class="title"><a href="book.mcrypt.php" class="link">Mcrypt</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     The <code class="parameter">source</code> parameter of
     <span class="function"><a href="function.mcrypt-create-iv.php" class="function">mcrypt_create_iv()</a></span> now defaults to
     <strong><code><a href="mcrypt.constants.php#constant.mcrypt-dev-urandom">MCRYPT_DEV_URANDOM</a></code></strong> instead of
     <strong><code><a href="mcrypt.constants.php#constant.mcrypt-dev-random">MCRYPT_DEV_RANDOM</a></code></strong>.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.openssl">
  <h3 class="title"><a href="book.openssl.php" class="link">OpenSSL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.stream-socket-enable-crypto.php" class="function">stream_socket_enable_crypto()</a></span> now allows the
     <code class="parameter">crypto_type</code> parameter to be optional if the
     stream&#039;s SSL context includes the new <code class="parameter">crypto_type</code>
     option.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.pgsql">
  <h3 class="title"><a href="book.pgsql.php" class="link">PostgreSQL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-insert.php" class="function">pg_insert()</a></span>, <span class="function"><a href="function.pg-select.php" class="function">pg_select()</a></span>,
     <span class="function"><a href="function.pg-update.php" class="function">pg_update()</a></span> and <span class="function"><a href="function.pg-delete.php" class="function">pg_delete()</a></span> are no
     longer experimental.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-send-execute.php" class="function">pg_send_execute()</a></span>,
     <span class="function"><a href="function.pg-send-prepare.php" class="function">pg_send_prepare()</a></span>, <span class="function"><a href="function.pg-send-query.php" class="function">pg_send_query()</a></span>
     and <span class="function"><a href="function.pg-send-query-params.php" class="function">pg_send_query_params()</a></span> will no longer block until
     query write completion if the underlying socket stream for the database
     connection is set to non-blocking mode.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.reflection">
  <h3 class="title"><a href="book.reflection.php" class="link">Reflection</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="reflectionclass.newinstancewithoutconstructor.php" class="methodname">ReflectionClass::newInstanceWithoutConstructor()</a></span>
     now allows non-final internal classes to be
     instantiated.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration56.changed-functions.xmlreader">
  <h3 class="title"><a href="book.xmlreader.php" class="link">XMLReader</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="xmlreader.getattributens.php" class="methodname">XMLReader::getAttributeNs()</a></span> and
     <span class="methodname"><a href="xmlreader.getattributeno.php" class="methodname">XMLReader::getAttributeNo()</a></span> now return <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if
     the attribute could not be found, like
     <span class="methodname"><a href="xmlreader.getattribute.php" class="methodname">XMLReader::getAttribute()</a></span>.
    </span>
   </li>
  </ul>
 </div>
</div><?php manual_footer($setup); ?>