Undefined constant "Modules\Admin\Controllers\GLOB_BRACE"
Describe the bug
On non GNU systems, the GLOB_BRACE flag used in castopod is not available as stated in the php manual:
Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris or Alpine Linux.
Steps to reproduce
- Run castopod on an Alpine system
- Run housekeeping
- Whoops! --> see logs for the corresponding error.
Expected behavior
Housekeeping should go through.
Relevant logs and/or screenshots
CRITICAL - 2022-01-29 10:14:50 --> Undefined constant "Modules\Admin\Controllers\GLOB_BRACE"
#0 /castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(825): Modules\Admin\Controllers\SettingsController->runHousekeeping()
#1 /castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(412): CodeIgniter\CodeIgniter->runController(Object(Modules\Admin\Controllers\SettingsController))
#2 /castopod/vendor/codeigniter4/codeigniter4/system/CodeIgniter.php(320): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#3 /castopod/public/index.php(41): CodeIgniter\CodeIgniter->run()
#4 {main}
Context
- Castopod: beta.3
- OS: Alpine
- Browser: any
- Web server: nginx
Possible fixes
Do not use GLOB_BRACE
.
Edited by Yassine Doghri