<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration73.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'migration73.other-changes.php',
    1 => 'Other Changes',
    2 => 'Other Changes',
  ),
  'up' => 
  array (
    0 => 'migration73.php',
    1 => 'Перехід від PHP 7.2.x до PHP 7.3.x',
  ),
  'prev' => 
  array (
    0 => 'migration73.deprecated.php',
    1 => 'Deprecated Features',
  ),
  'next' => 
  array (
    0 => 'migration73.windows-support.php',
    1 => 'Windows Support',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/migration73/other-changes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration73.other-changes" class="sect1">
 <h2 class="title">Other Changes</h2>

 <div class="sect2" id="migration73.other-changes.core">
  <h3 class="title">PHP Core</h3>

  <div class="sect3" id="migration73.other-changes.core.setcookie">
   <h4 class="title">Set(raw)cookie accepts $option Argument</h4>

   <p class="para">
    <span class="function"><a href="function.setcookie.php" class="function">setcookie()</a></span> and <span class="function"><a href="function.setrawcookie.php" class="function">setrawcookie()</a></span> now also
    support the following signature:
    <div class="methodsynopsis dc-description">
     <span class="methodname"><a href="function.setcookie.php" class="methodname">setcookie</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code><span class="initializer"> = &quot;&quot;</span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code><span class="initializer"> = []</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

    where <code class="literal">$options</code> is an associative array which may have
    any of the keys <code class="literal">&quot;expires&quot;</code>, <code class="literal">&quot;path&quot;</code>,
    <code class="literal">&quot;domain&quot;</code>, <code class="literal">&quot;secure&quot;</code>,
    <code class="literal">&quot;httponly&quot;</code> and <code class="literal">&quot;samesite&quot;</code>.
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.syslog">
   <h4 class="title">New Syslog ini Directives</h4>

   <p class="para">
    The following ini Directives have been added to customize logging, if
    <a href="errorfunc.configuration.php#ini.error-log" class="link">error_log</a> is set to
    <code class="literal">syslog</code>:
    <dl>
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.facility" class="link">syslog.facility</a></dt>
      <dd>
       <span class="simpara">
        Specifies what type of program is logging the message.
       </span>
      </dd>
     
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.filter" class="link">syslog.filter</a></dt>
      <dd>
       <span class="simpara">
        Specifies the filter type to filter the logged messages, with the
        supported filter types - <code class="literal">all</code>,
        <code class="literal">no-ctrl</code> and <code class="literal">ascii</code>.
        Starting with PHP 7.3.8, <code class="literal">raw</code> is also available, 
        restoring the way syslog behaved in previous PHP versions.
        This filter will also affect calls to <span class="function"><a href="function.syslog.php" class="function">syslog()</a></span>.
       </span>
      </dd>
     
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.ident" class="link">syslog.ident</a></dt>
      <dd>
       <span class="simpara">
        Specifies the ident string which is prepended to every message.
       </span>
      </dd>
     
    </dl>
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.gc">
   <h4 class="title">Garbage Collection</h4>

   <p class="para">
    The <a href="features.gc.collecting-cycles.php" class="link">cyclic GC</a> has been
    enhanced, which may result in considerable performance improvements.
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.misc">
   <h4 class="title">Miscellaneous</h4>

   <p class="para">
    <span class="function"><a href="function.var-export.php" class="function">var_export()</a></span> now exports <span class="classname"><a href="class.stdclass.php" class="classname">stdClass</a></span>
    objects as an array cast to an object (<code class="code">(object) array( ... )</code>), rather
    than using the nonexistent method <span class="methodname"><strong>stdClass::__setState()</strong></span>.
   </p>

   <p class="para">
    <span class="function"><a href="function.debug-zval-dump.php" class="function">debug_zval_dump()</a></span> was changed to display recursive arrays
    and objects in the same way as <span class="function"><a href="function.var-dump.php" class="function">var_dump()</a></span>. Now, it doesn&#039;t
    display them twice.
   </p>

   <p class="para">
    <span class="function"><a href="function.array-push.php" class="function">array_push()</a></span> and <span class="function"><a href="function.array-unshift.php" class="function">array_unshift()</a></span> can
    now also be called with a single argument, which is particularly convenient
    wrt. the spread operator.
   </p>
  </div>

 </div>

 <div class="sect2" id="migration73.other-changes.phpdbg">
  <h3 class="title">Interactive PHP Debugger</h3>

  <p class="para">
   The unused constants <strong><code><a href="phpdbg.constants.php#constant.phpdbg-file">PHPDBG_FILE</a></code></strong>,
   <strong><code><a href="phpdbg.constants.php#constant.phpdbg-method">PHPDBG_METHOD</a></code></strong>, <strong><code><a href="phpdbg.constants.php#constant.phpdbg-lineno">PHPDBG_LINENO</a></code></strong> and
   <strong><code><a href="phpdbg.constants.php#constant.phpdbg-func">PHPDBG_FUNC</a></code></strong> have been removed.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.fpm">
  <h3 class="title">FastCGI Process Manager</h3>

  <p class="para">
   The <span class="function"><a href="function.getallheaders.php" class="function">getallheaders()</a></span> function is now also available.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.curl">
  <h3 class="title">Client URL Library</h3>

  <p class="para">
   libcurl ≥ 7.15.5 is now required.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.filter">
  <h3 class="title">Data Filtering</h3>

  <p class="para">
   <strong><code><a href="filter.constants.php#constant.filter-validate-float">FILTER_VALIDATE_FLOAT</a></code></strong> now also supports a <code class="literal">thousand</code>
   option, which defines the set of allowed thousand separator chars.  The default
   (<code class="code">&quot;&#039;,.&quot;</code>) is fully backward compatible with former PHP versions.
  </p>

  <p class="para">
   <strong><code><a href="filter.constants.php#constant.filter-sanitize-add-slashes">FILTER_SANITIZE_ADD_SLASHES</a></code></strong> has been added as an alias of the
   <code class="literal">magic_quotes</code> filter (<strong><code><a href="filter.constants.php#constant.filter-sanitize-magic-quotes">FILTER_SANITIZE_MAGIC_QUOTES</a></code></strong>).
   The <code class="literal">magic_quotes</code> filter is subject to removal in future versions of PHP.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.ftp">
  <h3 class="title">FTP</h3>

  <p class="para">
   The default transfer mode has been changed to <code class="literal">binary</code>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.intl">
  <h3 class="title">Internationalization Functions</h3>

  <p class="para">
   <strong><code>Normalizer::NONE</code></strong> is deprecated, when PHP is linked with
   ICU ≥ 56.
  </p>

  <p class="para">
   Introduced <strong><code><a href="class.normalizer.php#normalizer.constants.form-kc-cf">Normalizer::FORM_KC_CF</a></code></strong> as
   <span class="methodname"><a href="normalizer.normalize.php" class="methodname">Normalizer::normalize()</a></span> argument for
   <code class="literal">NFKC_Casefold</code> normalization; available when linked with
   ICU ≥ 56.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.json">
  <h3 class="title">JavaScript Object Notation</h3>

  <p class="para">
   A new flag has been added, <strong><code><a href="json.constants.php#constant.json-throw-on-error">JSON_THROW_ON_ERROR</a></code></strong>, which
   can be used with <span class="function"><a href="function.json-decode.php" class="function">json_decode()</a></span> or
   <span class="function"><a href="function.json-encode.php" class="function">json_encode()</a></span> and causes these functions to throw the new
   <span class="classname"><a href="class.jsonexception.php" class="classname">JsonException</a></span> upon an error, instead of setting the
   global error state that is retrieved with
   <span class="function"><a href="function.json-last-error.php" class="function">json_last_error()</a></span> and <span class="function"><a href="function.json-last-error-msg.php" class="function">json_last_error_msg()</a></span>.
   <strong><code><a href="json.constants.php#constant.json-partial-output-on-error">JSON_PARTIAL_OUTPUT_ON_ERROR</a></code></strong> takes precedence over
   <strong><code><a href="json.constants.php#constant.json-throw-on-error">JSON_THROW_ON_ERROR</a></code></strong>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.mbstring">
  <h3 class="title">Multibyte String</h3>

  <p class="para">
   The configuration option <strong class="option configure">--with-libmbfl</strong> is
   no longer available.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.uodbc">
  <h3 class="title">ODBC (Unified)</h3>

  <p class="para">
   Support for <code class="literal">ODBCRouter</code> and <code class="literal">Birdstep</code>
   including the <code class="literal">birdstep.max_links</code> ini directive has been
   removed.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.opcache">
  <h3 class="title">OPcache</h3>

  <p class="para">
   The <code class="literal">opcache.inherited_hack</code> ini directive has been removed.
   The value has already been ignored since PHP 5.3.0.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.openssl">
  <h3 class="title">OpenSSL</h3>

  <p class="para">
   The <code class="literal">min_proto_version</code> and <code class="literal">max_proto_version</code>
   ssl stream options as well as related constants for possible TLS protocol values
   have been added.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pcre">
  <h3 class="title">Regular Expressions (Perl-Compatible)</h3>

  <p class="para">
   The <a href="book.pcre.php" class="link">PCRE extension</a> has been upgraded to
   PCRE2, which may cause minor behavioral changes (for instance, character
   ranges in classes are now more strictly interpreted), and augments the
   existing regular expression syntax.
  </p>

  <p class="para">
   <span class="function"><a href="function.preg-quote.php" class="function">preg_quote()</a></span> now also escapes the <code class="literal">&#039;#&#039;</code>
   character.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pdo-dblib">
  <h3 class="title">Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</h3>

  <p class="para">
   The attribute <strong><code>PDO::DBLIB_ATTR_SKIP_EMPTY_ROWSETS</code></strong> to enable automatic
   skipping of empty rowsets has been added.
  </p>

  <p class="para">
   The <strong><code>PDO::DBLIB_ATTR_TDS_VERSION</code></strong> attribute which exposes
   the TDS version has been added.
  </p>

  <p class="para">
    DATETIME2 columns are now treated like DATETIME columns.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pdo-sqlite">
  <h3 class="title">SQLite Functions (PDO_SQLITE)</h3>

  <p class="para">
   SQLite3 databases can now be opened in read-only mode by setting the
   new <strong><code>PDO::SQLITE_ATTR_OPEN_FLAGS</code></strong> attribute to
   <strong><code>PDO::SQLITE_OPEN_READONLY</code></strong>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.session">
  <h3 class="title">Session Handling</h3>

  <p class="para">
   <span class="function"><a href="function.session-set-cookie-params.php" class="function">session_set_cookie_params()</a></span> now also supports the
   following signature:
   <div class="methodsynopsis dc-description">
    <span class="methodname"><a href="function.session-set-cookie-params.php" class="methodname">session_set_cookie_params</a></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   where <code class="literal">$options</code> is an associative array which may have
   any of the keys <code class="literal">&quot;lifetime&quot;</code>, <code class="literal">&quot;path&quot;</code>,
   <code class="literal">&quot;domain&quot;</code>, <code class="literal">&quot;secure&quot;</code>,
   <code class="literal">&quot;httponly&quot;</code> and <code class="literal">&quot;samesite&quot;</code>. Accordingly,
   the return value of <span class="function"><a href="function.session-get-cookie-params.php" class="function">session_get_cookie_params()</a></span> now also
   has an element with the key <code class="literal">&quot;samesite&quot;</code>.
   Furthermore, the new <code class="literal">session.cookie_samesite</code> ini option to
   set the default of the SameSite directive for cookies has been added. It
   defaults to <code class="literal">&quot;&quot;</code> (empty string), so no SameSite directive is
   set. Can be set to <code class="literal">&quot;Lax&quot;</code> or <code class="literal">&quot;Strict&quot;</code>,
   which sets the respective SameSite directive.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.tidy">
  <h3 class="title">Tidy</h3>

  <p class="para">
   Building against <a href="https://github.com/petdance/tidyp" class="link external">&raquo;&nbsp;tidyp</a> is now also
   supported transparently. Since tidyp offers no API to get the release date,
   <span class="function"><a href="tidy.getrelease.php" class="function">tidy_get_release()</a></span> and <span class="methodname"><a href="tidy.getrelease.php" class="methodname">tidy::getRelease()</a></span>
   return <code class="literal">&#039;unknown&#039;</code> in this case.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.xml">
  <h3 class="title">XML Parser</h3>

  <p class="para">
   The return value of the <span class="function"><a href="function.xml-set-external-entity-ref-handler.php" class="function">xml_set_external_entity_ref_handler()</a></span>
   callback is no longer ignored if the extension has been built against libxml.
   Formerly, the return value has been ignored, and parsing did never stop.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.zip">
  <h3 class="title">Zip</h3>

  <p class="para">
   Building against the bundled libzip is discouraged, but still possible by
   adding <strong class="option configure">--without-libzip</strong> to the configuration.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.zlib">
  <h3 class="title">Zlib Compression</h3>

  <p class="para">
   The zlib/level context option for the <a href="wrappers.compression.php" class="link">compress.zlib wrapper</a> to facilitate
   setting the desired compression level has been added.
  </p>
 </div>

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