New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32 bit PHP: Return value of Amp\Loop\NativeDriver::now() must be of the type int, float returned #413
Comments
Are you running on a 32-bit install of PHP? If so, I would have expected some warnings from amp/lib/Internal/functions.php Lines 81 to 85 in c5ea790
|
Thanks, good to know. |
@flaviobattimo I haven't been able to test this warning, as I don't have any 32 bit system available. Could you please check whether warnings are enabled in your error reporting settings and check the log? It'd be helpful to know the warning works as expected. |
I can't find any warning in the logs, but they might be disabled. Instead of a warning, a method to check when to restart the process could be useful. But I understand 32 bit systems are almost gone. |
O erro indica que o método now() da classe NativeDriver do Amp\Loop está retornando um valor que não é um inteiro ou um número em ponto flutuante (float). |
Got this error:
Return value of Amp\Loop\NativeDriver::now() must be of the type int, float returned
#0 vendor/amphp/amp/lib/Loop/NativeDriver.php(130): Amp\Loop\NativeDriver->now()
#1 vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch()
#2 vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#3 vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
version: v2.6.2
PHP 7.4.30 (cli) (built: Jul 7 2022 15:51:43) ( NTS )
Thanks,
Flavio
The text was updated successfully, but these errors were encountered: