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

contributors($setup);

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

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

  <ul class="itemizedlist">
  <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.debug-zval-dump.php" class="function">debug_zval_dump()</a></span> now prints &quot;int&quot; instead of &quot;long&quot;,
     and &quot;float&quot; instead of &quot;double&quot;
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.dirname.php" class="function">dirname()</a></span> now optionally takes a second parameter,
     <code class="parameter">depth</code>, to get the name of the directory
     <code class="parameter">depth</code> levels up from the current directory.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.getrusage.php" class="function">getrusage()</a></span> is now supported on Windows.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mktime.php" class="function">mktime()</a></span> and <span class="function"><a href="function.gmmktime.php" class="function">gmmktime()</a></span> functions
     no longer accept <code class="parameter">is_dst</code> parameter.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.preg-replace.php" class="function">preg_replace()</a></span> function no longer supports
     &quot;\e&quot; (<strong><code>PREG_REPLACE_EVAL</code></strong>). <span class="function"><a href="function.preg-replace-callback.php" class="function">preg_replace_callback()</a></span>
     should be used instead.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.setlocale.php" class="function">setlocale()</a></span> function no longer accepts <code class="parameter">category</code>
     passed as string. <strong><code><a href="string.constants.php#constant.lc-ctype">LC_<span class="replaceable">*</span></a></code></strong> constants must be used instead.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.exec.php" class="function">exec()</a></span>, <span class="function"><a href="function.system.php" class="function">system()</a></span> and <span class="function"><a href="function.passthru.php" class="function">passthru()</a></span>
     functions have NULL byte protection now.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.shmop-open.php" class="function">shmop_open()</a></span> now returns a resource instead of an int,
     which has to be passed to <span class="function"><a href="function.shmop-size.php" class="function">shmop_size()</a></span>,
     <span class="function"><a href="function.shmop-write.php" class="function">shmop_write()</a></span>, <span class="function"><a href="function.shmop-read.php" class="function">shmop_read()</a></span>,
     <span class="function"><a href="function.shmop-close.php" class="function">shmop_close()</a></span> and <span class="function"><a href="function.shmop-delete.php" class="function">shmop_delete()</a></span>.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.substr.php" class="function">substr()</a></span> and <span class="function"><a href="function.iconv-substr.php" class="function">iconv_substr()</a></span> now return an empty string,
     if string is equal to start characters long.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.xml-parser-free.php" class="function">xml_parser_free()</a></span> is no longer sufficient to free the
     parser resource, if it references an object and this object references that
     parser resource. In this case it is necessary to additionally unset the $parser.
    </span>
   </li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>