Closed (duplicate)
Project:
Project Issue File Review
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2009 at 10:03 UTC
Updated:
1 Dec 2009 at 22:05 UTC
I almost got the PIFR client working, but the test "Detect a failing test" fails. I tested if error handling works using the following script:
function errorHandler($severity, $message, $file = NULL, $line = NULL) {
echo "got error!";
}
set_error_handler('errorHandler');
$foo = 1 / 0;
I also got display_errors on and log_errors off. I am not sure if this is really a bug, but I hope to get instructions on how to find out what's wrong on the installation.
thanks,
Timo
Comments
Comment #1
Felicitus commentedI believe this happens because the error handler is overwritten in common.inc during the full bootstrap.
Comment #2
deekayen commentedDrupal implements its own custom error handler on purpose. Your problem has been eluding me for me for days.
#616536: Expected error during testing causes an error?
Comment #3
Felicitus commentedActually the bug you posted and my issue differ. In my case, no syntax error occurs, but the error isn't simply caught for some reason. Probably there's no connection between those two, but I'm not 100% sure.
Comment #4
deekayen commentedI guess this is slightly different since it says "Passed on all environments." on the failed test check instead of "Syntax error in index.php."
Still strange about how messed up that fail check is being.
Comment #5
Felicitus commentedI have checked if the error is caught, and yes, it is even logged into the watchdog table in the drupal_checkout database.
Comment #6
boombatower commented#560646: Fatal PHP errors don't cause tests to fail