#659 exception handling producing notices, hence causing confusion

SVN:trunk[2625]
This commit is contained in:
Romain Quetiez
2013-03-14 14:22:27 +00:00
parent d620516055
commit c1fae7fd24
2 changed files with 9 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ function FatalErrorCatcher($sOutput)
if ( preg_match('|<phpfatalerror>.*</phpfatalerror>|s', $sOutput, $aMatches) )
{
header("HTTP/1.0 500 Internal server error.");
$errors = '';
foreach ($aMatches as $sMatch)
{
$errors .= strip_tags($sMatch)."\n";