Exception::__clone
(PHP 5, PHP 7, PHP 8)
Exception::__clone — Clone the exception
Description
private Exception::__clone(): void
Tries to clone the Exception, which results in Fatal error.
Parameters
This function has no parameters.
Return Values
No value is returned.
Errors/Exceptions
Exceptions are not clonable.
Changelog
Version | Description |
---|---|
8.1.0 | Exception::__clone() is no longer final. |
© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/exception.clone.php