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

contributors($setup);

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

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

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.getopt.php" class="function">getopt()</a></span> has an optional third parameter that exposes
     the index of the next element in the argument vector list to be processed.
     This is done via a by-ref parameter.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.getenv.php" class="function">getenv()</a></span> no longer requires its parameter. If the
     parameter is omitted, then the current environment variables will be
     returned as an associative array.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.get-headers.php" class="function">get_headers()</a></span> now has an additional parameter to enable
     for the passing of custom stream contexts.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.output-reset-rewrite-vars.php" class="function">output_reset_rewrite_vars()</a></span> no longer resets session
     URL rewrite variables.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.parse-url.php" class="function">parse_url()</a></span> is now more restrictive and supports
     RFC3986.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.unpack.php" class="function">unpack()</a></span> now accepts an optional third parameter to
     specify the offset to begin unpacking from.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.filesystem">
  <h3 class="title">File System</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.file-get-contents.php" class="function">file_get_contents()</a></span> now accepts a negative seek offset
     if the stream is seekable.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.tempnam.php" class="function">tempnam()</a></span> now emits a notice when falling back to the
     system&#039;s temp directory.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.json">
  <h3 class="title">JSON</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.json-encode.php" class="function">json_encode()</a></span> now accepts a new option,
     <strong><code><a href="json.constants.php#constant.json-unescaped-line-terminators">JSON_UNESCAPED_LINE_TERMINATORS</a></code></strong>, to disable the
     escaping of U+2028 and U+2029 characters when
     <strong><code><a href="json.constants.php#constant.json-unescaped-unicode">JSON_UNESCAPED_UNICODE</a></code></strong> is supplied.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.mbstring">
  <h3 class="title">Multibyte String</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-ereg.php" class="function">mb_ereg()</a></span> now rejects illegal byte sequences.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-ereg-replace.php" class="function">mb_ereg_replace()</a></span> now rejects illegal byte sequences.
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.pdo">
  <h3 class="title">PDO</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="pdo.lastinsertid.php" class="methodname">PDO::lastInsertId()</a></span> for PostgreSQL will now trigger an error
     when <code class="literal">nextval</code> has not been called for the current
     session (the postgres connection).
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.pgsql">
  <h3 class="title">PostgreSQL</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-last-notice.php" class="function">pg_last_notice()</a></span> now accepts an optional parameter to
     specify an operation. This can be done with one of the following new
     constants: <strong><code><a href="pgsql.constants.php#constant.pgsql-notice-last">PGSQL_NOTICE_LAST</a></code></strong>,
     <strong><code><a href="pgsql.constants.php#constant.pgsql-notice-all">PGSQL_NOTICE_ALL</a></code></strong>, or
     <strong><code><a href="pgsql.constants.php#constant.pgsql-notice-clear">PGSQL_NOTICE_CLEAR</a></code></strong>.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-fetch-all.php" class="function">pg_fetch_all()</a></span> now accepts an optional second parameter
     to specify the result type (similar to the third parameter of
     <span class="function"><a href="function.pg-fetch-array.php" class="function">pg_fetch_array()</a></span>).
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-select.php" class="function">pg_select()</a></span> now accepts an optional fourth parameter to
     specify the result type (similar to the third parameter of
     <span class="function"><a href="function.pg-fetch-array.php" class="function">pg_fetch_array()</a></span>).
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration71.changed-functions.session">
  <h3 class="title">Session</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.session-start.php" class="function">session_start()</a></span> now returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> and no longer
     initializes <var class="varname"><a href="reserved.variables.session.php" class="classname">$_SESSION</a></var> when it failed to start the
     session.
    </span>
   </li>
  </ul>
 </div>
</div><?php manual_footer($setup); ?>