Xdebug 2.0.5 with Zend Server CE PHP5.2.12 possible?

Posted by notbrain on Server Fault See other posts from Server Fault or by notbrain
Published on 2010-05-12T22:32:28Z Indexed on 2010/05/12 22:34 UTC
Read the original article Hit count: 305

I'm using Zend Server CE with PHP 5.2.12 on OSX Snow Leopard and want to use Xdebug. I've turned off Zend Data Cache, Zend Optimizer+, and Zend Debugger in the console.

When I run

$ cd ~/Downloads/xdebug-2.0.5
$ /usr/local/zend/bin/phpize

I get

Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

The PHP API Version, 20041225, seems to be off from the documentation (aka wrong). When I continue installation with

$ ./configure ---with-php-config=/usr/local/zend/bin/php-config
$ make
$ sudo make install

The installed xdebug.so seems to be the wrong one. Which version of xdebug do I need for this PHP API version? The Zend API numbers are ok. I'm just confused at why the PHP API Version doesn't match.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/xdebug.so' - (null) in Unknown on line 0
PHP 5.2.12 (cli) (built: Feb 17 2010 13:39:36)

© Server Fault or respective owner

Related posts about zend-server

Related posts about php5