Giter VIP home page Giter VIP logo

Comments (5)

trowski avatar trowski commented on June 8, 2024

Are you running on a 32-bit install of PHP?

If so, I would have expected some warnings from

\trigger_error(
"getCurrentTime() will overflow in $timeToOverflow seconds, please restart the process before that. " .
"You're using a 32 bit version of PHP, so time will overflow about every 24 days. Regular restarts are required.",
\E_USER_WARNING
);

from amp.

flaviobattimo avatar flaviobattimo commented on June 8, 2024

Thanks, good to know.
Yes, it's a 32bit OS running on an RPI4. It's a long running process, I will restart it regularly.

from amp.

kelunik avatar kelunik commented on June 8, 2024

@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.

from amp.

flaviobattimo avatar flaviobattimo commented on June 8, 2024

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.

from amp.

VictorGSoutoXP avatar VictorGSoutoXP commented on June 8, 2024

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).
Para resolver esse problema, você pode verificar a implementação do método now() na classe NativeDriver e garantir que ele sempre retorne um valor do tipo int ou float.
Outra opção é atualizar a versão do amphp/amp para a versão mais recente, que pode ter corrigido esse problema. Certifique-se de verificar a documentação e os requisitos de atualização antes de atualizar sua versão.
Se a atualização não for possível ou não resolver o problema, você também pode tentar utilizar um driver diferente no Amp\Loop. Existem vários drivers disponíveis que podem ser usados em vez do NativeDriver.
Por fim, se você não conseguir resolver o problema, pode ser útil entrar em contato com a comunidade do amphp/amp.

from amp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.