- restore_error_handler: documentation ( source)
- set_error_handler: documentation ( source)
- strtolower: documentation ( source)
<?php
class A {
protected $a;
public function foo() {
strtolower(
function () {
set_error_handler(function() {});
$class = get_called_class();
restore_error_handler();
return $class;
});
$f = function() {
};
$f();
}
}
$a = new A;
$a->foo();