- error_reporting: documentation ( source)
<?php
error_reporting(-1);
class GrandMother {
function f() {
echo __METHOD__;
}
}
class Mother extends GrandMother
{
function f() {
echo __METHOD__;
}
}
class Child extends Mother
{
function f() {
Mother::f();
}
}
$c = new Child;
$c->f();