mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
feat: add support for PHP timeouts on Linux (#128)
This commit is contained in:
14
testdata/timeout.php
vendored
Normal file
14
testdata/timeout.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function () {
|
||||
printf("request: %d\n", $_GET['i'] ?? 'unknown');
|
||||
set_time_limit(1);
|
||||
|
||||
$x = true;
|
||||
$y = 0;
|
||||
while ($x) {
|
||||
$y++;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user