Skip to content

Commit 31aedb1

Browse files
committed
Add PHP 8.5.0 deprecation changelog entries across 13 reference pages
- curl_share_close: deprecated (CurlShareHandle freed automatically) - finfo_close: deprecated (finfo objects freed automatically) - finfo_buffer: $context parameter deprecated - ReflectionMethod::setAccessible: deprecated (no effect since 8.1) - ReflectionProperty::setAccessible: deprecated (no effect since 8.1) - ReflectionClass::getConstant: deprecated for missing constants - ReflectionProperty::getDefaultValue: deprecated for properties without defaults - SplObjectStorage::contains: deprecated in favour of offsetExists - SplObjectStorage::attach: deprecated in favour of offsetSet - SplObjectStorage::detach: deprecated in favour of offsetUnset - spl_autoload_unregister: passing spl_autoload_call deprecated - chr: passing integers outside [0, 255] deprecated - ord: passing non-single-byte strings deprecated
1 parent c6fb604 commit 31aedb1

13 files changed

Lines changed: 249 additions & 0 deletions

File tree

reference/curl/functions/curl-share-close.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
</row>
5050
</thead>
5151
<tbody>
52+
<row>
53+
<entry>8.5.0</entry>
54+
<entry>
55+
This function has been deprecated,
56+
as <classname>CurlShareHandle</classname> objects are freed
57+
automatically.
58+
</entry>
59+
</row>
5260
&curl.changelog.share-handle-param;
5361
</tbody>
5462
</tgroup>

reference/fileinfo/functions/finfo-buffer.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@
8484
</row>
8585
</thead>
8686
<tbody>
87+
<row>
88+
<entry>8.5.0</entry>
89+
<entry>
90+
The <parameter>context</parameter> parameter has been deprecated
91+
as it is ignored.
92+
</entry>
93+
</row>
8794
&fileinfo.changelog.finfo-object;
8895
<row>
8996
<entry>8.0.0</entry>

reference/fileinfo/functions/finfo-close.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
</row>
5252
</thead>
5353
<tbody>
54+
<row>
55+
<entry>8.5.0</entry>
56+
<entry>
57+
This function has been deprecated,
58+
as <classname>finfo</classname> objects are freed automatically.
59+
</entry>
60+
</row>
5461
&fileinfo.changelog.finfo-object;
5562
</tbody>
5663
</tgroup>

reference/reflection/reflectionclass/getconstant.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,29 @@
4141
</para>
4242
</refsect1>
4343

44+
<refsect1 role="changelog">
45+
&reftitle.changelog;
46+
<informaltable>
47+
<tgroup cols="2">
48+
<thead>
49+
<row>
50+
<entry>&Version;</entry>
51+
<entry>&Description;</entry>
52+
</row>
53+
</thead>
54+
<tbody>
55+
<row>
56+
<entry>8.5.0</entry>
57+
<entry>
58+
Calling <methodname>ReflectionClass::getConstant</methodname> for
59+
constants that do not exist has been deprecated.
60+
</entry>
61+
</row>
62+
</tbody>
63+
</tgroup>
64+
</informaltable>
65+
</refsect1>
66+
4467
<refsect1 role="examples">
4568
&reftitle.examples;
4669
<para>

reference/reflection/reflectionmethod/setaccessible.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,34 @@
5050
</para>
5151
</refsect1>
5252

53+
<refsect1 role="changelog">
54+
&reftitle.changelog;
55+
<informaltable>
56+
<tgroup cols="2">
57+
<thead>
58+
<row>
59+
<entry>&Version;</entry>
60+
<entry>&Description;</entry>
61+
</row>
62+
</thead>
63+
<tbody>
64+
<row>
65+
<entry>8.5.0</entry>
66+
<entry>
67+
This method has been deprecated, as it no longer has an effect.
68+
</entry>
69+
</row>
70+
<row>
71+
<entry>8.1.0</entry>
72+
<entry>
73+
Calling this method has no effect; all methods are invokable by default.
74+
</entry>
75+
</row>
76+
</tbody>
77+
</tgroup>
78+
</informaltable>
79+
</refsect1>
80+
5381
<refsect1 role="examples">
5482
&reftitle.examples;
5583
<example>

reference/reflection/reflectionproperty/getdefaultvalue.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,29 @@
3232
</para>
3333
</refsect1>
3434

35+
<refsect1 role="changelog">
36+
&reftitle.changelog;
37+
<informaltable>
38+
<tgroup cols="2">
39+
<thead>
40+
<row>
41+
<entry>&Version;</entry>
42+
<entry>&Description;</entry>
43+
</row>
44+
</thead>
45+
<tbody>
46+
<row>
47+
<entry>8.5.0</entry>
48+
<entry>
49+
Calling <methodname>ReflectionProperty::getDefaultValue</methodname>
50+
for properties without default values has been deprecated.
51+
</entry>
52+
</row>
53+
</tbody>
54+
</tgroup>
55+
</informaltable>
56+
</refsect1>
57+
3558
<refsect1 role="examples">
3659
&reftitle.examples;
3760
<para>

reference/reflection/reflectionproperty/setaccessible.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,35 @@
5151
</para>
5252
</refsect1>
5353

54+
<refsect1 role="changelog">
55+
&reftitle.changelog;
56+
<informaltable>
57+
<tgroup cols="2">
58+
<thead>
59+
<row>
60+
<entry>&Version;</entry>
61+
<entry>&Description;</entry>
62+
</row>
63+
</thead>
64+
<tbody>
65+
<row>
66+
<entry>8.5.0</entry>
67+
<entry>
68+
This method has been deprecated, as it no longer has an effect.
69+
</entry>
70+
</row>
71+
<row>
72+
<entry>8.1.0</entry>
73+
<entry>
74+
Calling this method has no effect; all properties are accessible
75+
by default.
76+
</entry>
77+
</row>
78+
</tbody>
79+
</tgroup>
80+
</informaltable>
81+
</refsect1>
82+
5483
<refsect1 role="examples">
5584
&reftitle.examples;
5685
<example>

reference/spl/functions/spl-autoload-unregister.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@
4545
</para>
4646
</refsect1>
4747

48+
<refsect1 role="changelog">
49+
&reftitle.changelog;
50+
<informaltable>
51+
<tgroup cols="2">
52+
<thead>
53+
<row>
54+
<entry>&Version;</entry>
55+
<entry>&Description;</entry>
56+
</row>
57+
</thead>
58+
<tbody>
59+
<row>
60+
<entry>8.5.0</entry>
61+
<entry>
62+
Passing the <function>spl_autoload_call</function> function as
63+
a callback argument to unregister all autoloaders has been
64+
deprecated. Instead iterate over the return value of
65+
<function>spl_autoload_functions</function> and call
66+
<function>spl_autoload_unregister</function> on each value.
67+
</entry>
68+
</row>
69+
</tbody>
70+
</tgroup>
71+
</informaltable>
72+
</refsect1>
73+
4874
</refentry>
4975
<!-- Keep this comment at the end of the file
5076
Local variables:

reference/spl/splobjectstorage/attach.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,29 @@
5858
</para>
5959
</refsect1>
6060

61+
<refsect1 role="changelog">
62+
&reftitle.changelog;
63+
<informaltable>
64+
<tgroup cols="2">
65+
<thead>
66+
<row>
67+
<entry>&Version;</entry>
68+
<entry>&Description;</entry>
69+
</row>
70+
</thead>
71+
<tbody>
72+
<row>
73+
<entry>8.5.0</entry>
74+
<entry>
75+
This method has been deprecated in favour of
76+
<methodname>SplObjectStorage::offsetSet</methodname>.
77+
</entry>
78+
</row>
79+
</tbody>
80+
</tgroup>
81+
</informaltable>
82+
</refsect1>
83+
6184
<refsect1 role="examples">
6285
&reftitle.examples;
6386
<para>

reference/spl/splobjectstorage/contains.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@
4545
</para>
4646
</refsect1>
4747

48+
<refsect1 role="changelog">
49+
&reftitle.changelog;
50+
<informaltable>
51+
<tgroup cols="2">
52+
<thead>
53+
<row>
54+
<entry>&Version;</entry>
55+
<entry>&Description;</entry>
56+
</row>
57+
</thead>
58+
<tbody>
59+
<row>
60+
<entry>8.5.0</entry>
61+
<entry>
62+
This method has been deprecated in favour of
63+
<methodname>SplObjectStorage::offsetExists</methodname>.
64+
</entry>
65+
</row>
66+
</tbody>
67+
</tgroup>
68+
</informaltable>
69+
</refsect1>
70+
4871
<refsect1 role="examples">
4972
&reftitle.examples;
5073
<para>

0 commit comments

Comments
 (0)