КГ
Size: a a a
КГ
SP
try {
// developers would find a way to break things
} catch(\Throwable $error) {
// must be executed
}
VC
VC
AS
try {
// developers would find a way to break things
} catch(\Throwable $error) {
// must be executed
}
SP
SP
AS
<?php
class A {
public function __destruct()
{
throw new \RuntimeException('Catch me if you can');
}
}
try {
$a = new A();
} catch(\Throwable $error) {
echo $error->getMessage(); // Oops...
}
ИЛ
<?php
class A {
public function __destruct()
{
throw new \RuntimeException('Catch me if you can');
}
}
try {
$a = new A();
} catch(\Throwable $error) {
echo $error->getMessage(); // Oops...
}
ИЛ
VC
MM
MM
КГ
SP
AL
SP
SP