mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Merge branch 'PHP-7.4'
* PHP-7.4: Make 045.phpt busy wait
This commit is contained in:
commit
ef72b8f4ac
@ -13,13 +13,7 @@ set_time_limit(1);
|
||||
register_shutdown_function("plop");
|
||||
|
||||
function plop() {
|
||||
$ts = time();
|
||||
while(true) {
|
||||
if ((time()-$ts) > 2) {
|
||||
echo "Failed!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (true);
|
||||
}
|
||||
plop();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user