ubuntu - Why doesn't php sleep work in the windows-subsystem-linux?

one text

Solution:

There's a bug into WSL v1 and Ubuntu 20.04. Until the fix doesn't comes out, my work around was creating my own sleep function, as follow:

function waitForSec($sec) {
    $arr = [];
    $siginf = [];
    pcntl_sigtimedwait($arr,$siginf,$sec);
}

Cheers!!!!

Source