Closed (won't fix)
Project:
Devel
Version:
7.x-1.x-dev
Component:
devel
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2010 at 10:07 UTC
Updated:
7 Jun 2010 at 11:26 UTC
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
Comment #1
moshe weitzman commenteddevel's error handler is pretty lame and i'd like to just remove it.