Files
frankenphp/testdata/failing-worker.php
Alexander Stecher 98573ed7c0 refactor: extract the state module and make the backoff error instead of panic
This PR:
- moves state.go to its own module
- moves the phpheaders test the phpheaders module
- simplifies backoff.go
- makes the backoff error instead of panic (so it can be tested)
- removes some unused C structs
2025-12-02 23:10:12 +01:00

8 lines
179 B
PHP

<?php
if (rand(1, 100) <= 50) {
throw new Exception('this exception is expected to fail the worker');
}
// frankenphp_handle_request() has not been reached (also a failure)