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!



Let's work together.

If you're interested in working together email me at ben@benedmunds.com with details and I'll be happy to connect.


Find me on ...