Failed loading /Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
wrdickson
Posts: 1
Joined: Mon May 06, 2024 1:51 pm

Failed loading /Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so

Post by wrdickson »

I recently reinstalled MAMP in an attempt to resolve some issues, which has been partially successful. But I'm now getting a warning when running drush in my local environment:

Code: Select all

Failed loading /Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so:  dlopen(/Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so, 0x0009): symbol not found in flat namespace '_zend_observer_class_linked_observed'
This is pretty weird, because I'm not using php8.2.0. My default and the site I'm working on are set to 8.1.13. Drush is also using 8.1.13:

Code: Select all

% drush status
Failed loading /Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so:  dlopen(/Applications/MAMP/bin/php/php8.2.0/lib/php/extensions/no-debug-non-zts-20220829/opcache.so, 0x0009): symbol not found in flat namespace '_zend_observer_class_linked_observed'
Drupal version : 10.2.6                                                     
Site URI       : http://default                                             
PHP binary     : /Applications/MAMP/bin/php/php8.1.13/bin/php               
PHP config     : /Applications/MAMP/bin/php/php8.1.13/conf/php.ini          
PHP OS         : Darwin                                                     
PHP version    : 8.1.13                                                     
Drush script   : /Users/foo/Sites/MAMP/bar/vendor/drush/drush/drush     
Drush version  : 12.5.2.0                                                   
Drush temp     : /tmp                                                       
Drush configs  : /Users/foo/.drush/drush.yml                             
                 /Users/foo/Sites/MAMP/bar/vendor/drush/drush/drush.yml 
Drupal root    : /Users/foo/Sites/MAMP/bar/docroot                      
Site path      : sites/default
I have coworkers getting similar warnings, with different versions of PHP mentioned in the warning, sometimes multiple versions. Anyone have any idea what could be causing this?
Post Reply