Php70 dont run projects because php70-intl is deprecated


(Pedro Cruz) #1

Hello people!

well i had this problem yesterday, and now i cant run any of my projets about this!

brew config

HOMEBREW_VERSION: 1.6.3-42-gd8ccdd9
ORIGIN: https://github.com/Homebrew/brew
HEAD: d8ccdd9f26b6ee4923ec2d9b06c3c0ec2a2e3bd2
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c45011acec11d54e5667f7047d87ec366ef5f286
Core tap last commit: 6 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.1 build 902
Git: 2.15.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 9.0.4
macOS: 10.13.4-x86_64
CLT: 9.3.0.0.1.1521514116
Xcode: N/A
XQuartz: N/A

And when you see the version, you have already the problem:

php -v

Cannot load Xdebug - it was already loaded
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-intl/intl.so' - dlopen(/usr/local/opt/php70-intl/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-intl/intl.so' - dlopen(/usr/local/opt/php70-intl/intl.so, 9): image not found in Unknown on line 0
PHP 7.0.30 (cli) (built: Apr 26 2018 11:49:41) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
    with Zend OPcache v7.0.30, Copyright (c) 1999-2017, by Zend Technologies

How i can resolve this?

Thanks

Pedro Cruz


(Sean Molenaar) #2

It’s trying to load the intl library dynamicly but the new homebrew php binaries all have the libraries embedded. You should remove the config files that try to load intl.


(Charles) #3

Any solution to this problem? I can’t run any magento 2 projects because of this. :frowning:


(Pedro Cruz) #4

After 2 days, atleast i understood.

You need to remove all php from your brew.

brew list | grep php

And then install the php version that you use on your project. on my projet’s i use php7.1

Regards,

Pedro Cruz


(Sean Molenaar) #5

That isn’t really needed, all that was needed was removing the configuration files that tried to load the intl extension. But I’m glad to see you got it to work.