diff --git a/appendices/migration84/other-changes.xml b/appendices/migration84/other-changes.xml index fa821809bb80..05ccec6d3b98 100644 --- a/appendices/migration84/other-changes.xml +++ b/appendices/migration84/other-changes.xml @@ -551,9 +551,12 @@ Intl - The behaviour of Intl class has been normalized to always throw - Error exceptions when attempting to use - a non-initialized object, or when cloning fails. + Cloning an Intl object consistently throws an + Error when the clone cannot be performed, + either because the object has not been initialized, or because the + underlying ICU clone operation failed. Formerly, most of these classes + threw an Exception instead, and + Spoofchecker raised a fatal error. diff --git a/reference/intl/book.xml b/reference/intl/book.xml index 45e180457831..eadb85ce721c 100644 --- a/reference/intl/book.xml +++ b/reference/intl/book.xml @@ -93,6 +93,18 @@ + + + As of PHP 8.4.0, cloning an Intl object consistently throws an + Error when the clone cannot be performed, + either because the object has not been initialized (created without + invoking its constructor), or because the underlying ICU clone operation + failed. Formerly, most of these classes threw an + Exception instead, and + Spoofchecker raised a fatal error. + + +
Links