View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000916||Xdebug||Installation||public||2013-01-14 05:35||2013-03-09 22:07|
|Status||resolved||Resolution||no change required|
|Platform||GNU/Linux||OS||Ubuntu||OS Version||12.04.1 LTS|
|Summary||0000916: Failed to load xdebug.so, undefined symbol: php_body_write|
terjebr@banan:~/xdebug/xdebug-2.2.1$ make test
Failed loading /home/terjebr/xdebug/xdebug-2.2.1/modules/xdebug.so: /home/terjebr/xdebug/xdebug-2.2.1/modules/xdebug.so: undefined symbol: php_body_write
|Steps To Reproduce|
Install the xdebug.so file and restart apache.
[Mon Jan 14 05:50:05 2013] [notice] caught SIGTERM, shutting down
|Tags||No tags attached.|
|Operating System||GNU/Linux Ubuntu|
In May 31 2010, some changes in PHPAPI made the function php_body_write() to be replaced with php_output_write(). See commit here: https://github.com/php/php-src/commit/11d24c1593d6617f73d3f290617bd8994182f4dc#L51L121
By running "git branch -a --contains 11d24c1" in the official php-src repo I found out that this change was introduced since PHP 5.4.1, thus your PHP version includes this change, being "php_body_write" an unexisting symbol.
Your xdebug.so is trying to access that symbol anyway, which suggests me that your "phpize" might be still based on a previous PHP version. Beware that package "php5" and "php5-dev" are different and you might have upgraded the "php5" one (containing the mentioned changes in PHP) and not the "php5-dev" (which contains the 'phpize' command).
To determine if this is your problem, you can just read the output of the "phpize" command. First line shows the PHP Api Version ("20100412" in my case). If that version is previous to 2010 you might have an old one, and thus upgrading it should fix the problem.
Thank you pepellou. It was indeed the case. Ubuntu 12.04.1 ships with php version 5.4.6, but with the php5-dev package only on version 5.3.10.
$ phpize --version
I have reported the problem to Ubuntu. I guess it is their fault.
peppelou, thanks for the analysis. I'm closing this issue on my side then.
|2013-01-14 05:35||terje||New Issue|
|2013-02-08 14:33||pepellou||Note Added: 0002424|
|2013-02-09 14:20||terje||Note Added: 0002425|
|2013-03-09 22:07||derick||Note Added: 0002441|
|2013-03-09 22:07||derick||Status||new => resolved|
|2013-03-09 22:07||derick||Resolution||open => no change required|
|2013-03-09 22:07||derick||Assigned To||=> derick|