Zend Server CE 5.x and XDebug on OS X

I’ve taken to using Zend Server Community Edition for PHP work on OS X. Nice self-contained set of PHP, Apache, and Mysql. Most of the folks I work with don’t use editors or IDEs that support the Zend debugging extension though. So we use XDebug instead. I was just setting up a new environment and XDebug was segfaulting on my when I loaded it. I had tried just pecl installing it after disabling the Zend debugger and optimizer in the web interface. Just needed to force the architecture:

  • export CFLAGS=’-fno-common -arch i386′
  • export LDFLAGS=’-arch i386′
  • export CXXFLAGS=’-fno-common -arch i386′
  • pecl install xdebug

At first I tried some forms that included both architectures and some optimization flags cause I saw examples of that floating around online (ie. CFLAGS=’-O3 -fno-common -arch i386 -arch x86_64′). But that also was just faulting out on me. Checking the other modules in the Zend binaries they’re straight i386 architecture. I don’t do a lot of remote debugging, but it’s nice to have the option.

This entry was posted in Open Source, Software, Technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">