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

Felicitus’s picture

I believe this happens because the error handler is overwritten in common.inc during the full bootstrap.

deekayen’s picture

Status: Active » Closed (duplicate)

Drupal 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?

Felicitus’s picture

Actually 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.

deekayen’s picture

Status: Closed (duplicate) » Active

I 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.

Felicitus’s picture

I have checked if the error is caught, and yes, it is even logged into the watchdog table in the drupal_checkout database.

boombatower’s picture

Status: Active » Closed (duplicate)