[doc-en] master: Add PHP 8.5.0 deprecation changelog entries (#5369)

From: Date: Mon, 18 May 2026 18:06:09 +0000
Subject: [doc-en] master: Add PHP 8.5.0 deprecation changelog entries (#5369)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23322@lists.php.net to get a copy of this message
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: jordikroon Date: 2026-05-18T20:06:06+02:00 Commit: https://github.com/php/doc-en/commit/e5c8e7add9291c70be2ecd046de6ecfd034545a9 Raw diff: https://github.com/php/doc-en/commit/e5c8e7add9291c70be2ecd046de6ecfd034545a9.diff Add PHP 8.5.0 deprecation changelog entries (#5369) * 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 Changed paths: M reference/fileinfo/functions/finfo-buffer.xml M reference/reflection/reflectionclass/getconstant.xml M reference/reflection/reflectionmethod/setaccessible.xml M reference/reflection/reflectionproperty/getdefaultvalue.xml M reference/reflection/reflectionproperty/setaccessible.xml M reference/spl/functions/spl-autoload-unregister.xml M reference/spl/splobjectstorage/attach.xml M reference/spl/splobjectstorage/contains.xml M reference/spl/splobjectstorage/detach.xml M reference/strings/functions/chr.xml M reference/strings/functions/ord.xml Diff: diff --git a/reference/fileinfo/functions/finfo-buffer.xml b/reference/fileinfo/functions/finfo-buffer.xml index 3c5e3d81dd75..e9f28a946998 100644 --- a/reference/fileinfo/functions/finfo-buffer.xml +++ b/reference/fileinfo/functions/finfo-buffer.xml @@ -84,6 +84,13 @@ </row> </thead> <tbody> + <row> + <entry>8.5.0</entry> + <entry> + The <parameter>context</parameter> parameter has been deprecated + as it is ignored. + </entry> + </row> &fileinfo.changelog.finfo-object; <row> <entry>8.0.0</entry> diff --git a/reference/reflection/reflectionclass/getconstant.xml b/reference/reflection/reflectionclass/getconstant.xml index 6ae5d645296a..33a734c3cff7 100644 --- a/reference/reflection/reflectionclass/getconstant.xml +++ b/reference/reflection/reflectionclass/getconstant.xml @@ -41,6 +41,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + Calling <methodname>ReflectionClass::getConstant</methodname> for + constants that do not exist has been deprecated. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> diff --git a/reference/reflection/reflectionmethod/setaccessible.xml b/reference/reflection/reflectionmethod/setaccessible.xml index c87aabb4f175..f054a456603e 100644 --- a/reference/reflection/reflectionmethod/setaccessible.xml +++ b/reference/reflection/reflectionmethod/setaccessible.xml @@ -50,6 +50,34 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + This method has been deprecated, as it no longer has an effect. + </entry> + </row> + <row> + <entry>8.1.0</entry> + <entry> + Calling this method has no effect; all methods are invokable by default. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <example> diff --git a/reference/reflection/reflectionproperty/getdefaultvalue.xml b/reference/reflection/reflectionproperty/getdefaultvalue.xml index e7d05827cd99..f007b884f0fa 100644 --- a/reference/reflection/reflectionproperty/getdefaultvalue.xml +++ b/reference/reflection/reflectionproperty/getdefaultvalue.xml @@ -32,6 +32,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + Calling <methodname>ReflectionProperty::getDefaultValue</methodname> + for properties without default values has been deprecated. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> diff --git a/reference/reflection/reflectionproperty/setaccessible.xml b/reference/reflection/reflectionproperty/setaccessible.xml index 48b4604ef846..f3d160dc834f 100644 --- a/reference/reflection/reflectionproperty/setaccessible.xml +++ b/reference/reflection/reflectionproperty/setaccessible.xml @@ -51,6 +51,35 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + This method has been deprecated, as it no longer has an effect. + </entry> + </row> + <row> + <entry>8.1.0</entry> + <entry> + Calling this method has no effect; all properties are accessible + by default. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <example> diff --git a/reference/spl/functions/spl-autoload-unregister.xml b/reference/spl/functions/spl-autoload-unregister.xml index 0841e0a397b2..65476ddabab7 100644 --- a/reference/spl/functions/spl-autoload-unregister.xml +++ b/reference/spl/functions/spl-autoload-unregister.xml @@ -45,6 +45,32 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + Passing the <function>spl_autoload_call</function> function as + a callback argument to unregister all autoloaders has been + deprecated. Instead iterate over the return value of + <function>spl_autoload_functions</function> and call + <function>spl_autoload_unregister</function> on each value. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: diff --git a/reference/spl/splobjectstorage/attach.xml b/reference/spl/splobjectstorage/attach.xml index ee940f37a7d3..602f6cd8c25f 100644 --- a/reference/spl/splobjectstorage/attach.xml +++ b/reference/spl/splobjectstorage/attach.xml @@ -58,6 +58,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + This method has been deprecated in favor of + <methodname>SplObjectStorage::offsetSet</methodname>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> diff --git a/reference/spl/splobjectstorage/contains.xml b/reference/spl/splobjectstorage/contains.xml index 3ccf2b10fa50..a693ef1a6c6e 100644 --- a/reference/spl/splobjectstorage/contains.xml +++ b/reference/spl/splobjectstorage/contains.xml @@ -45,6 +45,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + This method has been deprecated in favor of + <methodname>SplObjectStorage::offsetExists</methodname>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> diff --git a/reference/spl/splobjectstorage/detach.xml b/reference/spl/splobjectstorage/detach.xml index 532db199f191..bed7c19a85e1 100644 --- a/reference/spl/splobjectstorage/detach.xml +++ b/reference/spl/splobjectstorage/detach.xml @@ -45,6 +45,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + This method has been deprecated in favor of + <methodname>SplObjectStorage::offsetUnset</methodname>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> diff --git a/reference/strings/functions/chr.xml b/reference/strings/functions/chr.xml index ac2d9ff2db15..f52a7c914c10 100644 --- a/reference/strings/functions/chr.xml +++ b/reference/strings/functions/chr.xml @@ -70,6 +70,13 @@ $bytevalue %= 256; </row> </thead> <tbody> + <row> + <entry>8.5.0</entry> + <entry> + Passing integers outside the interval <literal>[0, 255]</literal> + is now deprecated. + </entry> + </row> <row> <entry>7.4.0</entry> <entry> diff --git a/reference/strings/functions/ord.xml b/reference/strings/functions/ord.xml index 1f634063b963..b3aec6c740c7 100644 --- a/reference/strings/functions/ord.xml +++ b/reference/strings/functions/ord.xml @@ -47,6 +47,28 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.5.0</entry> + <entry> + Passing a string which is not a single byte is now deprecated. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para>

« previous php.doc.cvs (#23322) next »