This repository has been archived by the owner. It is now read-only.

php7.1 extension warnings after migration to core and upgrade #4827

Closed
aivus opened this Issue Mar 29, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@aivus
Copy link

aivus commented Mar 29, 2018

Description

I'm getting php warnings after migration from homebrew-php to homebrew-core and upgrade.

Upgrade logs:

brew update
Updated Homebrew from 6034caf9f to 6654ff6e1.
Updated 3 taps (homebrew/core, homebrew/php, caskroom/cask).
==> New Formulae
mint                                               php-cs-fixer                                       qsoas                                              scrcpy
==> Updated Formulae
icu4c ✔          ballerina        conan            fluent-bit       hadolint         kedge            liblcf           mariadb          node@8           pmd              sbt              webpack
node ✔           buku             convmv           folly            harfbuzz         knot-resolver    libmspub         mariadb@10.1     nodeenv          pyenv            sile             widelands
openssl ✔        bzt              couchdb          fonttools        headphones       kompose          libphonenumber   media-info       nuxeo            pygobject3       stdman           yaz
openssl@1.1 ✔    cabal-install    dartsim          freeciv          heroku           kubernetes-cli   libqalculate     mediaconch       packer           redis            tarantool        youtube-dl
amber            caddy            dcm2niix         freeling         hfstospell       languagetool     librdkafka       memcached        paket            rom-tools        tectonic         yq
ant              chakra           dovecot          geth             htop             laszip           libtensorflow    mimic            pazpar2          ruby             teleport         zebra
apibuilder-cli   chronograf       dwdiff           git-ftp          hwloc            libatomic_ops    libvisio         mpd              pdal             ruby-build       terragrunt       zorba
arangodb         clinfo           etcd             gosu             ircd-hybrid      libcdr           lmod             multimarkdown    php              ruby@2.2         typescript       zstd
artifactory      cmake            fades            grafana          jbig2enc         libfreehand      mame             node@4           picard-tools     ruby@2.3         vala
azure-cli        cockroach        flow             gtk-doc          joplin           libhdhomerun     mapnik           node@6           planck           rust             vnu
==> Renamed Formulae
php71 ✔ -> php@7.1
==> Deleted Formulae
homebrew/php/php71-intl ✔               homebrew/php/php71-opcache ✔            homebrew/php/php71-gmp                  homebrew/php/php71-pdo-dblib            homebrew/php/php71-snmp
homebrew/php/php71-mcrypt ✔             homebrew/php/php71-pdo-pgsql ✔          homebrew/php/php71-pcntl                homebrew/php/php71-pspell               homebrew/php/php71-tidy
==> Processing php71 formula rename to php@7.1
==> Unlinking php71
==> Moving php71 versions to /usr/local/Cellar/php@7.1
==> Relinking php@7.1
Warning: php@7.1 is outdated!
To avoid broken installations, as soon as possible please run:
  brew upgrade
Or, if you're OK with a less reliable fix:
  brew upgrade php@7.1
➜  certificationy-cli git:(master) php -v
PHP 7.1.14 (cli) (built: Feb  2 2018 08:42:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.14, Copyright (c) 1999-2018, by Zend Technologies
    with blackfire v1.18.2~mac-x64-non_zts71, https://blackfire.io, by SensioLabs
➜  certificationy-cli git:(master) brew upgrade php@7.1
==> Upgrading 1 outdated package, with result:
php@7.1 7.1.15
==> Upgrading php@7.1 
...

Probably related to #4826

Context and Logs

Parameter Value
macOS version: 10.13.3
Homebrew version: Homebrew 1.5.13-6-g6654ff6
PHP version in use: PHP 7.1.15
Xcode version: Not using full xcode. xcode-select version 2349.

Output of gcc -v:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Output of php -v:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/opt/php71-intl/intl.so
  Reason: image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/opt/php71-intl/intl.so
  Reason: image not found in Unknown on line 0
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0

Warning: Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_pgsql' already loaded in Unknown on line 0

Warning: Module 'pdo_pgsql' already loaded in Unknown on line 0
PHP 7.1.15 (cli) (built: Mar 29 2018 09:21:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.15, Copyright (c) 1999-2018, by Zend Technologies
    with blackfire v1.18.2~mac-x64-non_zts71, https://blackfire.io, by SensioLabs

Build logs: https://gist.github.com/aivus/fe558040e7762a202c41347a66521495

@SMillerDev

This comment has been minimized.

Copy link
Contributor

SMillerDev commented Mar 29, 2018

yes, the extensions are now compiled into PHP instead of shared. So you need to remove the config files for the old shared extensions.

@aivus

This comment has been minimized.

Copy link

aivus commented Mar 29, 2018

Ok, thanks.

It would be great to have info after upgrade, because it breaks env in patch update

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.