Because PHP is such a bad programming language, I sometimes search for bugs far away from where they really come from. Example:

$remote = new RulesWebRemote();
$test_remote->name = 'test_service';

Of course I meant the variable $remote in the second line and forgot to rename it in the first line. This creates a PHP notice, but I never see that notice because a fatal error is triggered from this bug later in the execution.

Therefore I want all notices to be fatal errors during development in order to do debugging faster. I thought this could live as option in the devel module. The approach would be to write a custom PHP error handler that re-triggers notices as fatal errors.

Any thoughts on this?

Comments

moshe weitzman’s picture

Status: Active » Closed (won't fix)

devel's error handler is pretty lame and i'd like to just remove it.