shivammathur / homebrew-php

:beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.

Home Page:https://github.com/shivammathur/homebrew-php/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icu4c version mismatch

HapiCZ opened this issue · comments

Describe the bug
I don't know if this is a formula or PHP problem:

Homebrew now contains icu4c in version 68.2 but php (tried 7.3, 7.4, 8.0) dependents on versio 67.1.

➜  ~ php
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuio.67.dylib
  Referenced from: /usr/local/opt/php@7.4/bin/php
  Reason: image not found
[1]    27004 abort      php

PHP versions
7.3, 7.4, 8.0

To Reproduce
Uninstall all php versions
Upgrade icu4c
Install php

** Temporary solution **
Manualy downgrade icu4c

example:
https://www.javaer101.com/en/article/7047493.html

Another temporary solution is to build from sources

Working on a fix, I need to first patch shivammathur/setup-php before I run upgrade here.

Updated. ICU version should now be 68.2.

Before installing please fetch the tap again.

HOMEBREW_DEVELOPER=1 brew untap shivammathur/php
brew tap shivammathur/php

tested and working... thank you for really fast fix

Hiya,
Is it possible this same issue has cropped up again, with mismatched versions? The installed icu4c version is now 71, while a php command errors out saying it can't find v69.

@heidilux The ICU version on all PHP from this tap is now 71.1. Please upgrade your PHP

#1089

If you are still facing the error, please create a new issue.