array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'exception.clone.php', 1 => 'Exception::__clone', 2 => 'Clone the exception', ), 'up' => array ( 0 => 'class.exception.php', 1 => 'Exception', ), 'prev' => array ( 0 => 'exception.tostring.php', 1 => 'Exception::__toString', ), 'next' => array ( 0 => 'class.errorexception.php', 1 => 'ErrorException', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/exception/clone.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Exception::__clone

(PHP 5, PHP 7, PHP 8)

Exception::__cloneClone the exception

Опис

private Exception::__clone(): void

Exceptions cannot be cloned, and attempting to do so will throw an Error.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Не повертає значень.

Помилки/виключення

Exceptions are not clonable.

Журнал змін

Версія Опис
8.1.0 Exception::__clone() is no longer final.