Fix PHPUnit using Zend Server CE on OSX

Just a simple explanation for anyone else running into this issue getting PHPUnit working with Zend Server CE on OSX Mountain Lion.

The error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mcrypt.so' - dlopen(/usr/local/zend/lib/php_extensions/mcrypt.so, 9): Library not loaded: /usr/lib/libltdl.3.dylib
Referenced from: /usr/local/zend/lib/php_extensions/mcrypt.so
Reason: image not found in Unknown on line 0

The fix:

ln -s /usr/local/zend/lib/libltdl.3.dylib /usr/lib/libltdl.3.dylib

Enjoy!



Get In Touch.

If you'd like to get in touch, you can reach me at ben@benedmunds.com.


Find me on ...