-
Notifications
You must be signed in to change notification settings - Fork 42
/
other-changes.xml
359 lines (311 loc) · 11.1 KB
/
other-changes.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4c41f6fa0ebe4afe8b7a3468e7e26dfd0c0e4131 Maintainer: samesch Status: ready -->
<sect1 xml:id="migration80.other-changes" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Sonstige Änderungen</title>
<sect2 xml:id="migration80.other-changes.sapi">
<title>Änderungen in SAPI-Modulen</title>
<sect3 xml:id="migration80.other-changes.sapi.apache2handler">
<title>Apache2Handler</title>
<para>
Das PHP-Modul wurde von <literal>php7_module</literal> in
<literal>php_module</literal> umbenannt.
</para>
</sect3>
</sect2>
<sect2 xml:id="migration80.other-changes.functions">
<title>Geänderte Funktionen</title>
<sect3 xml:id="migration80.other-changes.functions.reflection">
<title>Reflection</title>
<para>
Die Ergebnisse von
<methodname>ReflectionClass::getReflectionConstants</methodname> können
nun mit dem neuen Parameter <parameter>filter</parameter> gefiltert
werden. Drei neue Konstanten wurden hinzugefügt, die damit verwendet
werden können:
</para>
<para>
<simplelist>
<member><constant>ReflectionClassConstant::IS_PUBLIC</constant></member>
<member><constant>ReflectionClassConstant::IS_PROTECTED</constant></member>
<member><constant>ReflectionClassConstant::IS_PRIVATE</constant></member>
</simplelist>
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.functions.standard">
<title>Standard</title>
<para>
Die mathematischen Funktionen <function>abs</function>,
<function>ceil</function>, <function>floor</function> und
<function>round</function> berücksichtigen die
<link linkend="language.types.declarations.strict">Direktive <literal>strict_types</literal></link>
nun korrekt. Zuvor wurde der erste Parameter auch im strikten
Typisierungsmodus erzwungen.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.functions.zip">
<title>Zip</title>
<itemizedlist>
<listitem>
<para>
Die Methoden <methodname>ZipArchive::addGlob</methodname> und
<methodname>ZipArchive::addPattern</methodname> akzeptieren mehr Werte
im Parameter-Array <parameter>options</parameter>:
</para>
<para>
<simplelist>
<member><literal>flags</literal></member>
<member><literal>comp_method</literal></member>
<member><literal>comp_flags</literal></member>
<member><literal>env_method</literal></member>
<member><literal>enc_password</literal></member>
</simplelist>
</para>
</listitem>
<listitem>
<para>
Die Methoden <methodname>ZipArchiv::addEmptyDir</methodname>,
<methodname>ZipArchiv::addFile</methodname> und
<methodname>ZipArchive::addFromString</methodname> haben den neuen
Parameter <parameter>flags</parameter>. Damit können die Namenskodierung
(<constant>ZipArchive::FL_ENC_*</constant>) und die Ersetzung von
Einträgen (<constant>ZipArchive::FL_OVERWRITE</constant>) verwaltet
werden.
</para>
</listitem>
<listitem>
<para>
Die Methode <methodname>ZipArchive::extractTo</methodname> stellt nun
die Änderungszeit der Dateien wieder her.
</para>
</listitem>
</itemizedlist>
</sect3>
</sect2>
<sect2 xml:id="migration80.other-changes.extensions">
<title>Sonstige Änderungen bei Erweiterungen</title>
<sect3 xml:id="migration80.other-changes.extensions.curl">
<title>CURL</title>
<itemizedlist>
<listitem>
<para>
Die Erweiterung CURL benötigt jetzt mindestens libcurl 7.29.0.
</para>
</listitem>
<listitem>
<para>
Der veraltete Parameter <parameter>version</parameter> der Funktion
<function>curl_version</function> wurde entfernt.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.date">
<title>Datum und Zeit</title>
<para>
Die Klasse <classname>DatePeriod</classname> implementiert nun
<interfacename>IteratorAggregate</interfacename> anstelle von
<interfacename>Traversable</interfacename>.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.dom">
<title>DOM</title>
<para>
Die Klassen <classname>DOMNamedNodeMap</classname> und
<classname>DOMNodeList</classname> implementieren nun
<interfacename>IteratorAggregate</interfacename> anstelle von
<interfacename>Traversable</interfacename>.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.intl">
<title>Intl</title>
<para>
Die Klassen <classname>IntlBreakIterator</classname> und
<classname>ResourceBundle</classname> implementieren nun
<interfacename>IteratorAggregate</interfacename> anstelle von
<interfacename>Traversable</interfacename>.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.enchant">
<title>Enchant</title>
<para>
Die Erweiterung enchant verwendet nun standardmäßig libenchant-2, falls
verfügbar. libenchant Version 1 wird noch unterstützt, ist aber veraltet
und könnte in Zukunft entfernt werden.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.gd">
<title>GD</title>
<itemizedlist>
<listitem>
<para>
Der Parameter <parameter>num_points</parameter> der Funktionen
<function>imagepolygon</function>, <function>imageopenpolygon</function>
und <function>imagefilledpolygon</function> ist nun optional, d. h.
diese Funktionen können nun entweder mit 3 oder mit 4 Parametern
aufgerufen werden. Falls der Parameter weggelassen wird, wird er anhand
von <code>count($points)/2</code> berechnet.
</para>
</listitem>
<listitem>
<para>
Die Funktion <function>imagegetinterpolation</function> wurde
hinzugefügt, um die aktuelle Interpolationsmethode zu ermitteln.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.json">
<title>JSON</title>
<para>
Die Erweiterung JSON kann nicht mehr deaktiviert werden und ist immer
ein integraler Bestandteil eines jeden PHP-Builds, ähnlich wie die
Erweiterung date.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.mbstring">
<title>MBString</title>
<para>
Die Unicode-Datentabellen wurden auf Version 13.0.0 aktualisiert.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.pdo">
<title>PDO</title>
<para>
<classname>PDOStatement</classname> implementiert nun
<interfacename>IteratorAggregate</interfacename> anstelle von
<interfacename>Traversable</interfacename>.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.libxml">
<title>LibXML</title>
<para>
Die minimal erforderliche libxml-Version ist nun 2.9.0. Dies bedeutet,
dass das Laden von externen Entities nun garantiert standardmäßig
deaktiviert ist und keine zusätzlichen Maßnahmen zum Schutz vor
XXE-Angriffen ergriffen werden müssen.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.mysqli">
<title>MySQLi / PDO-MySQL</title>
<itemizedlist>
<listitem>
<para>
Wenn mysqlnd nicht verwendet wird (dies ist die standardmäßige und
empfohlene Option), ist die niedrigste unterstützte
libmysqlclient-Version nun 5.5.
</para>
</listitem>
<listitem>
<para>
<classname>mysqli_result</classname> implementiert nun
<interfacename>IteratorAggregate</interfacename> anstelle von
<interfacename>Traversable</interfacename>.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.pgsql">
<title>PGSQL / PDO-PGSQL</title>
<para>
Die Erweiterungen PGSQL und PDO-PGSQL benötigen nun mindestens libpq 9.1.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.readline">
<title>Readline</title>
<para>
Der Aufruf von <function>readline_completion_function</function> vor dem
Start der interaktiven Eingabeaufforderung (z. B. in
<link linkend="ini.auto-prepend-file">auto_prepend_file</link>)
überschreibt nun die standardmäßige Vervollständigungs-Funktion der
interaktiven Eingabeaufforderung. Zuvor funktionierte
<function>readline_completion_function</function> nur, wenn sie nach dem
Start der interaktiven Eingabeaufforderung aufgerufen wurde.
</para>
</sect3>
<sect3 xml:id="migration80.other-changes.extensions.simplexml">
<title>SimpleXML</title>
<para>
<classname>SimpleXMLElement</classname> implementiert nun
<interfacename>RecursiveIterator</interfacename> und übernimmt die
Funktionalität von <classname>SimpleXMLIterator</classname>.
<classname>SimpleXMLIterator</classname> ist eine leere Erweiterung von
<classname>SimpleXMLElement</classname>.
</para>
</sect3>
</sect2>
<sect2 xml:id="migration80.other-changes.ini">
<title>Änderungen bei der Handhabung von INI-Dateien</title>
<itemizedlist>
<listitem>
<para>
<!--<link linkend="ini.com.dotnet-version">-->com.dotnet_version<!--</link>-->
ist eine neue INI-Direktive, um die Version des .NET-Frameworks
festzulegen, das für <classname>dotnet</classname>-Objekte verwendet
wird.
</para>
</listitem>
<listitem>
<para>
<!--<link linkend="ini.zend.exception-string-param-max-len">-->zend.exception_string_param_max_len<!--</link>-->
ist eine neue INI-Direktive, um die maximale Länge einer Zeichenkette in
einem Parameter eines stringifizierten Stackstraces festzulegen.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration80.other-changes.ebcdic">
<title>EBCDIC</title>
<para>
EBCDIC-Targets werden nicht mehr unterstützt, wobei es eher
unwahrscheinlich ist, dass sie überhaupt noch funktionieren.
</para>
</sect2>
<sect2 xml:id="migration80.other-changes.performance">
<title>Performance</title>
<itemizedlist>
<listitem>
<para>
Der Erweiterung opcache wurde ein Just-In-Time- (JIT) Compiler
hinzugefügt.
<!-- https://wiki.php.net/rfc/jit -->
</para>
</listitem>
<listitem>
<para>
Die Funktion <function>array_slice</function> durchsucht bei einem Array
ohne Lücken nicht mehr das gesamte Array, um den Start-Offset zu finden.
Dies kann die Laufzeit der Funktion bei großen Offsets und kleinen Längen
erheblich reduzieren.
</para>
</listitem>
<listitem>
<para>
Wenn die Locale von <constant>LC_CTYPE</constant>
<literal>"C"</literal> ist (was der Standard ist), verwendet die Funktion
<function>strtolower</function> nun die SIMD-Implementierung.
</para>
</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
-->