1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
<?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
-->
|