Personally, I love Lando for secondary PHP versions but I find the performance penalty running Docker on a Mac too high to use it for my primary environment.
DOWNLOAD PHP FOR MAC HOW TO
This project requires ZipArchive, so either I could switch to a different method of installing PHP, like using brew or a Docker or Lando environment, or I could figure out how to reenable zip support in the system PHP. It turns out that the PHP 7.3 that ships with Catalina does not include the zip/ZipArchive support.
That makes a lot of sense, but it also complicates using PECL or phpize, because the paths under /usr that they references are read-only now.Īfter the upgrade my dev sites were by-and-large working well, but on one site I ran into the following error: Error: Class 'ZipArchive' not found
The OS X upgrade process always includes a few surprises for developers, however.Ī big surprise in this upgrade was that Catalina improves security by adding a read-only file system for critical system files you don't want tampered with. Taking a break from development for a day or two and upgrading my laptop to Catalina seemed like a good way to kick off the new year.Ĭatalina upgrades the System PHP version from 7.2.x to 7.3.9, which is a change I am eager to get as PHP 7.2 is no longer actively supported by the PHP developer community. Photo by Don Graham and used under Creative Common 2.0 Attribution-ShareAlike license.