PHP 8.6.0 Beta 3 is available for testing

Exception::__clone

(PHP 5, PHP 7, PHP 8)

Exception::__cloneClone the exception

Descrizione

private function Exception::__clone(): void

Exceptions do not support cloning; this method exists only to prevent it.

Avviso

Exceptions cannot be cloned, whether they are instances of Exception or of a subclass. Attempting to clone an exception throws an Error, which may be caught.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Nessun valore viene restituito.

Errori/Eccezioni

Exceptions are not clonable.

Log delle modifiche

Versione Descrizione
8.1.0 Exception::__clone() is no longer declared final, because declaring a private method final emits a warning as of PHP 8.0.0. Exceptions remain uncloneable.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top