Fixes issue 1412

https://github.com/Homebrew/homebrew-php/issues/1412