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

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" #342

Closed
imlinfly opened this issue Oct 31, 2022 · 0 comments
Closed

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" #342

imlinfly opened this issue Oct 31, 2022 · 0 comments

Comments

@imlinfly
Copy link

imlinfly commented Oct 31, 2022

我使用的Alpine Linux操作系统,刚拉取最新版本的webman,使用php start.php start命令运行出现以下错误:

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" in /project/test-webman/webman/config/process.php:29
Stack trace:
#0 /project/test-webman/webman/vendor/workerman/webman-framework/src/Config.php(190): include()
#1 /project/test-webman/webman/vendor/workerman/webman-framework/src/Config.php(48): Webman\Config::loadFromDir()
#2 /project/test-webman/webman/vendor/workerman/webman-framework/src/support/App.php(133): Webman\Config::load()
#3 /project/test-webman/webman/vendor/workerman/webman-framework/src/support/App.php(30): support\App::loadAllConfig()
#4 /project/test-webman/webman/start.php(4): support\App::run()
#5 {main}
  thrown in /project/test-webman/webman/config/process.php on line 29

我查阅PHP官方的文档,发现Alpine Linux操作系统不支持GLOB_BRACE常量

image

@walkor walkor closed this as completed in 7bda2e6 Oct 31, 2022
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