Skip to content
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

OpenSwoole Version 22.0 Server CPU Count Function Error #8

Closed
kursadaltan opened this issue Oct 20, 2023 · 1 comment
Closed

OpenSwoole Version 22.0 Server CPU Count Function Error #8

kursadaltan opened this issue Oct 20, 2023 · 1 comment

Comments

@kursadaltan
Copy link

kursadaltan commented Oct 20, 2023

Openswoole Version 22.0
When I trying php engineer server:start command I getted below errors.

Fatal error: Uncaught Error: Call to undefined function swoole_cpu_num() in /var/www/php/vendor/fomo/framework/src/Helper/fomo.php:66
Stack trace:
#0 /var/www/php/config/server.php(14): cpuCount()
#1 /var/www/php/vendor/fomo/framework/src/Config/Config.php(28): require_once('/var/www/php/co...')
#2 /var/www/php/vendor/fomo/framework/src/Helper/fomo.php(59): Fomo\Config\Config->get('ssl.ssl_cert_fi...', NULL)
#3 /var/www/php/vendor/fomo/framework/src/Commands/Server/Start.php(87): config('server.ssl.ssl_...')
#4 /var/www/php/vendor/symfony/console/Command/Command.php(326): Fomo\Commands\Server\Start->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/php/vendor/symfony/console/Application.php(1063): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/php/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Fomo\Commands\Server\Start), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/php/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/php/engineer(98): Symfony\Component\Console\Application->run()
#9 {main}
thrown in /var/www/php/vendor/fomo/framework/src/Helper/fomo.php on line 66

This problem is solved laravel octane. And I tried this update It's worked.

https://github.com/laravel/octane/pull/626/files

@kursadaltan
Copy link
Author

This is solved already. But composer is not latest version I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant