Php 7.2 has been disabled because it is deprecated upstream

Since PHP 7.2 is not supported anymore, it's got delisted from the Hombrew core repository.

You've to find a third-party repository that still contains an older PHP version, such as the shivammathur/php repository.

You need to tap the repository like this in your Homebrew:

brew tap shivammathur/php

Then you can install PHP 7.2 like this:

brew install shivammathur/php/

You can find more information around the above tap and available versions on its GitHub repository.

You must be logged in to vote

11 replies

And on a MONDAY - Boo hooo!

I feel both ends, however, @SMillerDev - douche move man, people install the entire universe with Node. I mean let's face it, a language is only as safe as the hacker sitting, feeding instructions to the machine.

I have to admit, Yes we want up-to-date software, however, we update the core i.e "PHP" and all of our other packages break. I'd rather have the vulnerability and go in for a fix myself rather than 15 other packages that now broke because of something you just decided to take away.

If you want the community to respect you and this "Personal Home Page" language, you have to show care for others not just be all arrogant and like "Oh well tough titties, It's not my problem! Go make your own tap you, you, youuuuuu PHP 7 wanting a-hole"! Heck if my nose wasn't shoved up NodeJS's and typescript butt Id have opted to maintain this project so that the world can live to see another day of our good ol' friend who they love to hate, Mr PHP 7. I mean it's not like I'm asking for 5 or 4! Sigh

I'm done, anger out. Love you all - now back to find a workaround, Thanks for the eeeerrrrrrr, Therapy?
:]

I'd rather have the vulnerability and go in for a fix myself rather than 15 other packages that now broke because of something you just decided to take away.

If you want to manage it yourself, maybe using a package manager to manage your packages is the wrong approach for you.

Homebrew has clearly defined rules about what is supported, if you don't like those there are multiple ways to override them. If you don't like how Homebrew does things and you don't want to do it yourself I suggest this

It's relevant because it's by the project lead of homebrew, therefore reinforcing my position that if you don't want to maintain something, homebrew doesn't have to either because it's license literally says it doesn't.

The maintainers provide no assurances that the software will ever work for any user or use case [even documented ones]

Here you go, there was no assurance that the software would work and you got lucky that it did until it didn't.

The maintainers are never liable for any problems caused by any use of the software [including damages that require you to pay for repairs]

Hey look, you used Homebrew and it caused the problem that you can't install a version of PHP that PHP no longer supports. Homebrew is not liable for that.

We only ask that Homebrew does not remove important, functional, working, stable packages.

If you want to pin your software stack to a specific version, Homebrew [or any rolling release] is not the tool I'd recommend using. Docker does this way better.

We can argue what it means to be a maintainer for an open source project for a while, but in the end the simple truth is this:

  • Homebrew has rules about versions, we followed them here and nothing about that will change.

ok; ok; ok Guys 😓, Yes @SMillerDev I agree with you; I'll take a knee on this one as I was wrong. I appreciate what You and other maintainers are doing to keep things going with great GIRTH, so be a fella and please accept my apologies as that rant was out of line. sigh. I need a yellow rubber duckie for my rants, I was a bit ticked off this morning.

We all have those crap Mondays where you worked all weekend trying to make something awesome; and then; there's this that one annoying thing you always use to be able to do with ease - however, now, you can't, and that's all she wrote...

[i.e the switching between PHP versions using homebrew], now you have to use brain power to compute another way. I love homebrew and have been using it for a while, in my opinion, It's the best, super easy and simple to use. Also thanks for the blog links and helpful comments. I managed to fix my issue and ship my code, easy peasy no stress; no; no; no :]. And on the plus;

I now have a way forward should I ever be in a similar situation with other software. If there's a way I can contribute I'll submit a PR.

You're doing what's best for us and that sits well in my books
Kudos.

Answer selected by leqq00

How do I change php version on Mac?

Switch Between PHP Versions.
PHP 8.1 brew install php. Update the path: echo 'export PATH="/opt/homebrew/opt/php/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/opt/homebrew/opt/php/sbin:$PATH"' >> ~/.zshrc..
PHP 8.0 brew install php@8.0. ... .
PHP 7.4 arch -arm64 brew install php@7.4..

What is the newest version of PHP?

PHP 8.1 was released on November 25, 2021. It's currently the latest PHP version.

How do I uninstall PHP on Mac?

Common Manual Ways to Uninstall PHP on Mac.
Click Finder and tap on the Applications category..
Select PHP and drag it to the Trash icon or you can also right-click on it and click Move to Trash..
Now, right-click on the Trash icon again and select Empty Trash..

Chủ Đề