-
Notifications
You must be signed in to change notification settings - Fork 42
/
changed-functions.xml
120 lines (114 loc) · 3.76 KB
/
changed-functions.xml
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
117
118
119
120
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4279863b96f74295fb6bd2d44e34270a71fb9537 Maintainer: nobody Status: ready -->
<sect1 xml:id="migration70.changed-functions">
<title>Geänderte Funktionen</title>
<sect2 xml:id="migration70.changed-functions.core">
<title>PHP-Kern</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> Gibt nun "int" statt "long" und
"float" statt "double" aus.
</simpara>
</listitem>
<listitem>
<simpara>
<function>dirname</function> nimmt nun optional einen zweiten Parameter
<parameter>depth</parameter> entgegen, womit der Name des Verzeichnisses,
dass <parameter>depth</parameter> Stufen oberhalb des aktuellen liegt.
</simpara>
</listitem>
<listitem>
<simpara>
<function>getrusage</function> wird nun auf Windows unterstützt.
</simpara>
</listitem>
<listitem>
<simpara>
Die <function>mktime</function> und <function>gmmktime</function> Funktionen
akzeptieren den Parameter <parameter>is_dst</parameter> nicht mehr.
</simpara>
</listitem>
<listitem>
<simpara>
<function>preg_replace</function> Funktion unterstützt den Modifier "\e"
(<constant>PREG_REPLACE_EVAL</constant>) nicht mehr.
Stattdessen sollte <function>preg_replace_callback</function> verwendet werden.
</simpara>
</listitem>
<listitem>
<simpara>
<function>setlocale</function> Funktion akzeptiert keine Zeichenketten mehr,
die dem Parameter <parameter>category</parameter> übergeben werden.
Stattdessen muss eine der <constant>LC_*</constant> Konstanten verwendet werden.
</simpara>
</listitem>
<listitem>
<simpara>
Die <function>exec</function>, <function>system</function> und <function>passthru</function>
Funktionen haben nun einen Nullbyte-Schutz.
</simpara>
</listitem>
<listitem>
<simpara>
<function>shmop_open</function> gibt nun <type>resource</type> statt <type>int</type> zurück,
die den Funktionen <function>shmop_size</function>,
<function>shmop_write</function>, <function>shmop_read</function>,
<function>shmop_close</function> und <function>shmop_delete</function> zu übergeben ist.
</simpara>
</listitem>
<listitem>
<simpara>
<function>substr</function> und <function>iconv_substr</function> geben eine
leere Zeichenkette zurück,
wenn <parameter>start</parameter> gleich der Länge der Zeichenkette entspricht.
</simpara>
</listitem>
<listitem>
<simpara>
<function>xml_parser_free</function> ist nicht länger ausreichend, um die
Parser-Ressource freizugeben, wenn sie ein Objekt referenziert und dieses
Objekt jene Parser-Ressource referenziert. In diesem Fall ist es notwendig
zusätzlich den Parser zu löschen (z.B. per <function>unset</function>).
</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
-->