mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
117 lines
3.4 KiB
XML
117 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<sect1 xml:id="migration70.changed-functions">
|
|
<title>Changed functions</title>
|
|
|
|
<sect2 xml:id="migration70.changed-functions.core">
|
|
<title>PHP Core</title>
|
|
<!--
|
|
Let's assume that functions from extensions bundled by default with PHP are 'core functions',
|
|
like in PHP 5.6.x migration guide.
|
|
-->
|
|
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<function>debug_zval_dump</function> now prints "int" instead of "long",
|
|
and "float" instead of "double"
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>dirname</function> now optionally takes a second parameter,
|
|
<parameter>depth</parameter>, to get the name of the directory
|
|
<parameter>depth</parameter> levels up from the current directory.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>getrusage</function> is now supported on Windows.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>mktime</function> and <function>gmmktime</function> functions
|
|
no longer accept <parameter>is_dst</parameter> parameter.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>preg_replace</function> function no longer supports
|
|
"\e" (<constant>PREG_REPLACE_EVAL</constant>). <function>preg_replace_callback</function>
|
|
should be used instead.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>setlocale</function> function no longer accepts <parameter>category</parameter>
|
|
passed as string. <constant>LC_<replaceable>*</replaceable></constant> constants must be used instead.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>exec</function>, <function>system</function> and <function>passthru</function>
|
|
functions have NULL byte protection now.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>shmop_open</function> now returns a resource instead of an int,
|
|
which has to be passed to <function>shmop_size</function>,
|
|
<function>shmop_write</function>, <function>shmop_read</function>,
|
|
<function>shmop_close</function> and <function>shmop_delete</function>.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>substr</function> and <function>iconv_substr</function> now return an empty string,
|
|
if string is equal to start characters long.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<function>xml_parser_free</function> 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.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</sect2>
|
|
|
|
<!-- skeleton; replace ext with extension name
|
|
<sect2 xml:id="migration70.changed-functions.ext">
|
|
<title><link linkend="book.ext">ext</link></title>
|
|
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
Change.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</sect2>
|
|
-->
|
|
</sect1>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|