Skip to content

Instantly share code, notes, and snippets.

@lexod
Created August 5, 2020 17:05
Show Gist options
  • Save lexod/fd2875029a1797e5821c7b66b33a49e3 to your computer and use it in GitHub Desktop.
Save lexod/fd2875029a1797e5821c7b66b33a49e3 to your computer and use it in GitHub Desktop.
PHP: icu4c version incompatibility fix
#!/bin/bash
# sh icu4c.fix.sh YOUR_COMMIT_NUMBER
# look up for the version you need using 'brew log icu4c' and copy commit number($0)
git -C $(brew --repo homebrew/core) fetch --unshallow;
cd $(brew --repo homebrew/core);
git checkout $0 -- Formula/icu4c.rb;
brew uninstall --ignore-dependencies icu4c;
brew install icu4c;
git reset && git checkout . ;
cd -;
#!/bin/bash
brew services stop php@7.2;
brew unlink php@7.2;
brew link --fore php@7.1;
brew switch icu4c 64.2;
brew services start php@7.1;
#!/bin/bash
brew services stop php@7.1;
brew unlink php@7.1;
brew link --fore php@7.2;
brew switch icu4c 67.1;
brew services start php@7.2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment