PHP 8.5.0 Alpha 4 available for testing

Voting

: max(seven, three)?
(Example: nine)

The Note You're Voting On

domger at freenet dot de
7 years ago
The __destruct magic method must be public.

public function __destruct()
{
;
}

The method will automatically be called externally to the instance. Declaring __destruct as protected or private will result in a warning and the magic method will not be called.

Note: In PHP 5.3.10 i saw strange side effects while some Destructors were declared as protected.

<< Back to user notes page

To Top