Closed harryqt closed 1 month ago
Hi @harryqt ,
Can you please try to run with Swoole 5.1.2 or 5.1.3? One of my team members also reported this issue few days ago. And I'm verifying if it only happens on Swoole 5.1.4.
Hi @harryqt, I encountered the same issue as you. After some research, I discovered that Swoole's coroutine was causing the issue. There is a simple code that reproduces the issue:
Swoole\Runtime::enableCoroutine(true);
var_dump(scandir(__DIR__));
You'll notice that when the coroutine is enabled, scandir
returns an empty array, which prevents the framework from finding the config files, thus causing this error.
This morning, I upgraded my Mac to version 15 and reinstalled Swoole, which resolved the issue.
What’s your Swoole and Php version?
What’s your Swoole and Php version?
Same as you, PHP 8.3.11, Swoole 5.1.4. I installed them via Homebrew.
brew install shivammathur/php/php
brew install shivammathur/extensions/swoole@8.3
Reinstall of Swoole solved the issue. 🤷
brew reinstall swoole@8.3
OS
MacOS 14
PHP Version
8.3.11
Swoole Extension Version
5.1.4
Description
Steps To Reproduce
Then open: http://localhost:9501