Community
Participate
Working Groups
Detecting previously-undefined variables and showing them as warnings would be incredibly helpful in tracking down semi-broken code. Some logic has to go into this, as things like if (empty($foo)) {} should not cause a warning, but something like foo($bar); where $bar was previously undeclared, would.
I think that this behavior should be based on a configuration option which should include the current error_reporting settings like: Undefined variables report () report undefined variables () do not report undefined variables () obey to PHP error reporting level
Yossi/Asi is this something we want to implement?
+1 -- phpeclipse has this feature already in 1.1.9. Adding it as something toggleable via a preferences page would be cool, but having it on by default would be a good first step if time is short.
*** Bug 152087 has been marked as a duplicate of this bug. ***
Adding to cc.
*** Bug 177344 has been marked as a duplicate of this bug. ***
*** Bug 206890 has been marked as a duplicate of this bug. ***
*** Bug 159393 has been marked as a duplicate of this bug. ***
*** Bug 190676 has been marked as a duplicate of this bug. ***
Shouldn't this be closed?