Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Monterey stop bundling PHP #23

Closed
tomy0000000 opened this issue Sep 8, 2021 · 3 comments
Closed

macOS Monterey stop bundling PHP #23

tomy0000000 opened this issue Sep 8, 2021 · 3 comments

Comments

@tomy0000000
Copy link
Contributor

tomy0000000 commented Sep 8, 2021

It is confirmed that macOS Monterey will stop provide built-in PHP, see here and there.

The solution would probably be...

  • Bundle php binaries in this workflow (I'm not sure if that's going to work / suitable)
  • Add a user-guide to instruct user install php with homebrew (Probably the easiest, but not ideal for non-geeky users)
  • Rebuild the whole functionality in another scripting language

For anyone who stumble across this, the quick solution is

  1. Install PHP via homebrew
brew install php
  1. Change php path in Alfred

Double-click on encode / decode block, and change php to /usr/local/bin/php

@willfarrell
Copy link
Owner

Would you like to put a PR to update the docs?
Setting the $PATH shouldn't require a change in Alfred, usually brew takes care of this.

@tomy0000000
Copy link
Contributor Author

@willfarrell

I've tried fixing this issue by setting export PATH=/usr/local/bin:$PATH in many different ways. For instance, inside .bashrc, .bash_profile, .profile, .zshrc...etc.
The thing is, alfred execute these script in non-interactive mode, so it won't source those rcfiles implicitly.
Changing path in Alfred is the most easiest way to do, IMHO.

@willfarrell
Copy link
Owner

Thanks for checking. Let's add the docs on how to change path then. Since people will be using both versions for at least a year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants