sebastianbergmann/php-invoker — pull request #2 by edorian (2011-11-22 13:28:27+00:00)
Title: pcntl_alarm not getting reset when an exception is thrown

In general:

When a function is called that throws an exception the pcntl_alarm was not reset and so the TimeoutException was thrown later out of context.

For phpunit:

When a test is skipped the timeout is not reset because of `throw new PHPUnit_Framework_SkippedTestError` and that leads to the error popping up later, mostly during code coverage generation.

Credit for the bug report and reproduce case goes to @lstrojny