Updated PHP Windows builds for Brotli security fix

Error::__clone

(PHP 7, PHP 8)

Error::__clone — Clone the error

Опис

private function Error::__clone(): void

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

Увага

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

Параметри

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

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

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

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

Attempting to clone an error throws an Error with the following message: Trying to clone an uncloneable object of class ClassName.

Журнал змін

Версія Опис
8.1.0 Error::__clone() is no longer final.
+add a note

User Contributed Notes

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