Skip to content

Commit c09f0dd

Browse files
committed
More fixes to UPGRADING
1 parent 5ddc8f7 commit c09f0dd

File tree

1 file changed

+31
-37
lines changed

1 file changed

+31
-37
lines changed

UPGRADING

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ PHP 8.4 UPGRADE NOTES
1919
1. Backward Incompatible Changes
2020
========================================
2121

22-
- CLI:
23-
. The builtin server looks for an index file recursively by traversing parent
24-
directories in case the specified file cannot be located. This process was
25-
previously skipped if the path looked like it was referring to a file, i.e.
26-
if the last path component contained a period. In that case, a 404 error was
27-
returned. The behavior has been changed to look for an index file in all
28-
cases.
29-
3022
- Core:
3123
. The type of PHP_DEBUG and PHP_ZTS constants changed to bool.
3224
. The name of uploaded files and files created by the tempnam() function are
@@ -57,10 +49,6 @@ PHP 8.4 UPGRADE NOTES
5749
should be replaced with checks for `false`.
5850

5951
- DOM:
60-
. Added DOMNode::compareDocumentPosition() and DOMNode::DOCUMENT_POSITION_*
61-
constants.
62-
If you have a method or constant with the same name, you might encounter errors
63-
if the declaration is incompatible.
6452
. Some DOM methods previously returned false or a PHP_ERR DOMException if a new
6553
node could not be allocated. They consistently throw an INVALID_STATE_ERR
6654
DOMException now. This situation is extremely unlikely though and probably
@@ -69,18 +57,12 @@ PHP 8.4 UPGRADE NOTES
6957
. Previously, DOMXPath objects could be cloned, but resulted in an unusable
7058
object. This is no longer possible, and cloning a DOMXPath object now throws
7159
an error.
72-
. DOMDocument::$actualEncoding, DOMDocument::config, DOMEntity::$actualEncoding,
73-
DOMEntity::$encoding, DOMEntity::$version have been deprecated.
74-
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#formally_deprecate_soft-deprecated_domdocument_and_domentity_properties
7560
. Removed DOMImplementation::getFeature().
7661
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#remove_domimplementationgetfeature_feature_version
7762

7863
- GMP:
7964
. The GMP class is now final and cannot be extended anymore.
8065
RFC: https://wiki.php.net/rfc/gmp-final
81-
. Casting a GMP object to bool changed so that 0 becomes false and everything else
82-
becomes true.
83-
RFC: https://wiki.php.net/rfc/fix_up_bcmath_number_class
8466

8567
- Intl:
8668
. resourcebundle_get(), ResourceBundle::get(), and accessing offsets on a
@@ -190,18 +172,6 @@ PHP 8.4 UPGRADE NOTES
190172
constructor counterparts, being closer to the documentation states.
191173

192174
- Reflection:
193-
. Added methods ReflectionClass::newLazyGhost(),
194-
ReflectionClass::newLazyProxy(), ReflectionClass::resetAsLazyGhost(),
195-
ReflectionClass::resetAsLazyProxy(),
196-
ReflectionClass::isUninitializedLazyObject(),
197-
ReflectionClass::initializeLazyObject(),
198-
ReflectionClass::markLazyObjectAsInitialized(),
199-
ReflectionClass::getLazyInitializer(),
200-
ReflectionProperty::skipLazyInitialization(),
201-
ReflectionProperty::setRawValueWithoutLazyInitialization() and constants
202-
ReflectionClass::SKIP_*.
203-
If you have a method or constant with the same name, you might encounter
204-
errors if the declaration is incompatible.
205175
. The class constants are typed now.
206176

207177
- SimpleXML:
@@ -230,10 +200,6 @@ PHP 8.4 UPGRADE NOTES
230200
To solve this, either don't use rtld-now or load the session extension.
231201

232202
- SPL:
233-
. Out of bounds accesses in SplFixedArray now throw an exception of type
234-
OutOfBoundsException instead of RuntimeException. As OutOfBoundsException
235-
is a child class of RuntimeException, code that uses RuntimeException
236-
continues to function.
237203
. The class constants are typed now.
238204

239205
- Sqlite:
@@ -347,6 +313,7 @@ PHP 8.4 UPGRADE NOTES
347313
curl_getinfo() $option parameter. This requires libcurl 8.10.0 or later.
348314

349315
- DOM:
316+
. Added DOMNode::compareDocumentPosition()
350317
. Added constant DOMNode::DOCUMENT_POSITION_DISCONNECTED.
351318
. Added constant DOMNode::DOCUMENT_POSITION_PRECEDING.
352319
. Added constant DOMNode::DOCUMENT_POSITION_FOLLOWING.
@@ -481,6 +448,14 @@ PHP 8.4 UPGRADE NOTES
481448
. Support for EOL Apache 2.0 and 2.2 has been removed. Minimum required Apache
482449
version is now 2.4.
483450

451+
- CLI:
452+
. The builtin server looks for an index file recursively by traversing parent
453+
directories in case the specified file cannot be located. This process was
454+
previously skipped if the path looked like it was referring to a file, i.e.
455+
if the last path component contained a period. In that case, a 404 error was
456+
returned. The behavior has been changed to look for an index file in all
457+
cases.
458+
484459
- FPM:
485460
. /dev/poll events.mechanism setting for Solaris/Illumos had been retired.
486461

@@ -495,6 +470,11 @@ PHP 8.4 UPGRADE NOTES
495470
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_e_user_error_to_trigger_error
496471
. Using "_" as a class name is now deprecated.
497472
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_using_a_single_underscore_as_a_class_name
473+
. Raising zero to the power of negative number is deprecated.
474+
RFC: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number
475+
. The E_STRICT constant was deprecated and its corresponding error level was
476+
removed.
477+
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
498478

499479
- Curl:
500480
. The CURLOPT_BINARYTRANSFER constant is deprecated.
@@ -514,6 +494,9 @@ PHP 8.4 UPGRADE NOTES
514494
- DOM:
515495
. Deprecated DOM_PHP_ERR constant.
516496
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_dom_php_err_constant
497+
. DOMDocument::$actualEncoding, DOMDocument::config, DOMEntity::$actualEncoding,
498+
DOMEntity::$encoding, DOMEntity::$version have been deprecated.
499+
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#formally_deprecate_soft-deprecated_domdocument_and_domentity_properties
517500

518501
- Hash:
519502
. Deprecated passing incorrect data types for options to ext/hash functions.
@@ -605,8 +588,6 @@ PHP 8.4 UPGRADE NOTES
605588
- Standard:
606589
. Calling stream_context_set_option() with 2 arguments is deprecated.
607590
Use stream_context_set_options() instead.
608-
. Raising zero to the power of negative number is deprecated.
609-
RFC: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number
610591
. Unserializing strings using the uppercase 'S' tag is deprecated.
611592
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#unserialize_s_s_tag
612593
. Using the default value for $escape parameter of:
@@ -787,6 +768,9 @@ PHP 8.4 UPGRADE NOTES
787768
6. New Functions
788769
========================================
789770

771+
- Core:
772+
. request_parse_body()
773+
790774
- BCMath:
791775
. Added bcfloor(), bcceil(), bcround().
792776
RFC: https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath
@@ -806,7 +790,6 @@ PHP 8.4 UPGRADE NOTES
806790
RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl
807791
. Added DOMXPath::quote() to quote a string for use in an XPath expression.
808792
Example usage: "//span[contains(text()," . $xpath->quote($string) . ")]"
809-
. DOMNode::compareDocumentPosition()
810793

811794
- Hash:
812795
. Added HashContext::__debugInfo().
@@ -1021,6 +1004,11 @@ PHP 8.4 UPGRADE NOTES
10211004
effect, and is silently ignored. This underlying feature was
10221005
deprecated in libcurl 7.11.1 and removed in 7.62.0.
10231006

1007+
- GMP:
1008+
. Casting a GMP object to bool changed so that 0 becomes false and everything else
1009+
becomes true.
1010+
RFC: https://wiki.php.net/rfc/fix_up_bcmath_number_class
1011+
10241012
- Intl:
10251013
. The behaviour of Intl class has been normalized to always throw Error
10261014
exceptions when attempting to use a non-initialized object,
@@ -1044,6 +1032,12 @@ PHP 8.4 UPGRADE NOTES
10441032
- PgSQL:
10451033
. The pgsql extension now requires at least libpq 10.0.
10461034

1035+
- SPL:
1036+
. Out of bounds accesses in SplFixedArray now throw an exception of type
1037+
OutOfBoundsException instead of RuntimeException. As OutOfBoundsException
1038+
is a child class of RuntimeException, code that uses RuntimeException
1039+
continues to function.
1040+
10471041
- XSL:
10481042
. The typed properties XSLTProcessor::$cloneDocument and
10491043
XSLTProcessor::$doXInclude are now declared.

0 commit comments

Comments
 (0)