I installed php56 via homebrew
brew install php56
Loaded it into apache in httpd.conf
LoadModule php5_module /usr/local/Cellar/php56/5.6.31_7/libexec/apache2/libphp5.so
And everything seems fine. But when I added php-intl
brew install php56-intl
Intl, doesn't load, and I get the following error:
PHP Core Warning 'yii\base\ErrorException' with message 'PHP Startup:
Unable to load dynamic library '/usr/local/opt/php56-intl/intl.so' - dlopen(/usr/local/opt/php56-intl/intl.so, 9):
Symbol not found: _compiler_globals
Referenced from: /usr/local/opt/php56-intl/intl.so
Expected in: flat namespace in /usr/local/opt/php56-intl/intl.so'
What is strange, it works fine when using php-cli(/usr/local/bin/php), error only appears when loading as apache module.
What is my misconfiguration?