Hi Stas,
On Mon, Jun 6, 2011 at 4:02 PM, Stas Malyshev <[email protected]> wrote:
>
> I wouldn't love it a bit, frankly, as "rely on PHP's native error handling"
> in this context means "bombing out in runtime without any idea what went
> wrong". When you have exception, you could make it print what happened and
> recover, if you want. When you have fatal error, you can't do much at all.
The patch as you probably know throws a E_RECOVERABLE_ERROR, which in
my humble opinion doesn't quite fall under the end-of-world category
you seem to explain there :- )
I.E.
function bar($a, $b, $c, $d)
{ return true; }
set_error_handler("bar");
class Foo
{
public function test(Array $arr) {}
}
$foo = new Foo; $foo->test('invalid');
echo "Everything will be okay.. :p";
-Chris