Title: Not compatible with PHP Alpine Docker image
Last modified: April 8, 2018

---

# Not compatible with PHP Alpine Docker image

 *  [llaumgui](https://wordpress.org/support/users/llaumgui/)
 * (@llaumgui)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/not-compatible-with-php-alpine-docker-image/)
 * Hi,
 * on the admin page, I have a message :
    `Warning: Use of undefined constant GLOB_BRACE-
   assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP) in/
   var/www/XXX/web/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.
   php on line 286`
 * and
    `Warning: glob() expects parameter 2 to be integer, string given in /var/
   www/XXX/web/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php 
   on line 286`
 * It’s because alpine doesn’t have it in libc…
    Somes explication: [https://github.com/wp-cli/wp-cli/issues/4353#issuecomment-330061786](https://github.com/wp-cli/wp-cli/issues/4353#issuecomment-330061786)
 * wp-cli have a fixe, but I thinks that use another PHP function is a good issue…
    -  This topic was modified 8 years, 1 month ago by [llaumgui](https://wordpress.org/support/users/llaumgui/).
    -  This topic was modified 8 years, 1 month ago by [llaumgui](https://wordpress.org/support/users/llaumgui/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [llaumgui](https://wordpress.org/support/users/llaumgui/)
 * (@llaumgui)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/not-compatible-with-php-alpine-docker-image/#post-10166122)
 * Work with this patch:
 *     ```
       32d31
       <     private $globbrace = 0;
       48,52c47
       < 		/*
       <         Check if GLOB_BRACE is defined before using it
       <         */
       <         $this->globbrace = (defined('GLOB_BRACE')) ? GLOB_BRACE : 0;
       < 
       ---
       > 		
       161c156
       < 		$files = glob(MMR_CACHE_DIR.'/*.log', $this->globbrace);
       ---
       > 		$files = glob(MMR_CACHE_DIR.'/*.log', GLOB_BRACE);
       230c225
       < 		$files = glob(MMR_CACHE_DIR.'/'.$hash.'*.log', $this->globbrace);
       ---
       > 		$files = glob(MMR_CACHE_DIR.'/'.$hash.'*.log', GLOB_BRACE);
       232c227
       < 		$files = glob(MMR_CACHE_DIR.'/*.log', $this->globbrace);
       ---
       > 		$files = glob(MMR_CACHE_DIR.'/*.log', GLOB_BRACE);
       253c248
       < 		foreach(glob($dir.'/{,.}*', $this->globbrace) as $file) { 
       ---
       > 		foreach(glob($dir.'/{,.}*', GLOB_BRACE) as $file) { 
       291c286
       < 		$files = glob(MMR_CACHE_DIR.'/*.{js,css}', $this->globbrace);
       ---
       > 		$files = glob(MMR_CACHE_DIR.'/*.{js,css}', GLOB_BRACE);
       ```
   
 *  Thread Starter [llaumgui](https://wordpress.org/support/users/llaumgui/)
 * (@llaumgui)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/not-compatible-with-php-alpine-docker-image/#post-10560524)
 * Not possible to patch for alpine Linux ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not compatible with PHP Alpine Docker image’ is closed to new replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [llaumgui](https://wordpress.org/support/users/llaumgui/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/not-compatible-with-php-alpine-docker-image/#post-10560524)
 * Status: not resolved