View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008883 | mantisbt | other | public | 2008-02-12 11:32 | 2016-07-20 17:13 |
Reporter | pardini | Assigned To | grangeway | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.1 | ||||
Fixed in Version | 1.2.0a3 | ||||
Summary | 0008883: error_api.php: error_handled() returns true after an 'ignored' error, like a E_NOTICE | ||||
Description | The default config says that E_NOTICE should be ignored (eg 'none'). Even so, when some E_NOTICE is raised the error handler does set $g_error_handled to true, which causes error_handled() to return true. That causes, for example, print_header_redirect() (in print_api.php) to do nothing, resulting a "white screen of death". Possible solution is to not set $g_error_handled to true if $t_method is 'none'. | ||||
Steps To Reproduce | 1) Using default configuration | ||||
Tags | patch | ||||
Attached Files | error_api.php.patch (643 bytes)
Index: error_api.php =================================================================== RCS file: /var/lib/cvs/mantis/core/error_api.php,v retrieving revision 1.3 diff -u -r1.3 error_api.php --- error_api.php 10 Feb 2008 00:49:02 -0000 1.3 +++ error_api.php 12 Feb 2008 16:48:52 -0000 @@ -171,10 +171,12 @@ if ( $t_lang_pushed ) { lang_pop(); } - - $g_error_parameters = array(); - $g_error_handled = true; - $g_error_proceed_url = null; + + if (!($t_method == 'none')) { + $g_error_parameters = array(); + $g_error_handled = true; + $g_error_proceed_url = null; + } } # --------------- | ||||