WP should also catch E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR
|Reported by:||Denis-de-Bernardy||Owned by:||westi|
When writing PHP 5 code, and using the static operator, you can end up with a blank screen in WP. Inheriting a class with a static function and overriding it with a non-static function, for instance, triggers an E_COMPILE or E_CORE (not sure which one exactly), and this leads to a blank screen unless WP_DEBUG is switched on.
The attached patch (it's against 2.9.2, but I take it that it'll apply fine to trunk) adds E_CORE and E_COMPILE to the errors reported by WP.
It also fixes an E_NOTICE when COOKIEHASH is already defined.
Change History (13)
- Milestone changed from 3.0 to 2.9.3
- Resolution fixed deleted
- Status changed from closed to reopened