BBEdit #Shebang!

January 11, 2008

Now, after getting Zend Debugger to work, trying to run a .php file in BBEdit using #!/usr/bin/php results in the following error:

dyld: NSLinkModule() error
dyld: Symbol not found: _OnUpdateInt
Referenced from:
/Applications/Zend/ZendStudio-5.5.0/lib/php4/ZendDebugger.so
Expected in: flat namespace

This is caused by those new lines in /etc/php.ini (see previous post).

But Zend Debugger needs that configuration, so the fix is to put an empty php.ini into /usr/bin. This allows BBEdit to work around the problem.


Zend Debugger

January 6, 2008

ZendDebuggerLocal.so, an extension supplied with Zend Studio, doesn’t work in server mode. Checking the environment using phpinfo shows Zend Debugger v5.2.12 is disabled. Also, the file dummy.php is empty.

A different extension and dummy.php file is found online. ZendDebugger.so goes into Zend’s lib/php4 directory, and the new and different dummy.php goes into localhost’s root directory.

Next, insert the following data into /etc/php.ini, showing the interpreter where the extension can be found:

zend_extension=/Applications/Zend/ZendStudio-5.5.0/lib/php4/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1/32
session.save_path=/Applications/Zend/ZendStudio-5.5.0/tmp

Also, because MySQL is installed on localhost and can’t be reached internally, change the debug mode to server:

Zend Studio > Preferences > Debug > Debug Mode: Server


Follow

Get every new post delivered to your Inbox.