glob GLOB_BRACE check before use
-
Hi,
I’m using Docker with an alpine image for dev WPs.
Alpine isn’t compiled with libc and so doesn’t support GLOB_BRACE. (Some more info: https://github.com/zendframework/zend-stdlib/issues/58, https://github.com/wp-cli/wp-cli/issues/4353)Warning: glob() expects parameter 2 to be integer, string given in /var/www/html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/condition/theme/layouts-support/native/available.php on line 30 Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/condition/theme/layouts-support/native/available.php on line 30
Can you check if GLOB_BRACE is supported/defined and if not, use something else?
Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘glob GLOB_BRACE check before use’ is closed to new replies.