XDebug PHP version compatibility issue

Bug #945615 reported by sry but private
This bug report is a duplicate of:  Bug #820797: Update to Xdebug 2.1.2. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Incomplete
Wishlist
Unassigned

Bug Description

This issue isn't a bug in common sense.
It's a package interoperability problem resulting in bugs.

I am using a vanilla Ubuntu 10.04 LTS installation.
with
libapache2-mod-php5 (PHP Version 5.3.2-1ubuntu4.14)
php5-xdebug (2.0.5-1ubuntu1)

The usual bug is that there are no visible local variables in the IDE depending on Xdebug.
By manually updating XDebug to a 2.1.x version the bug vanishes.

All behaves well with XDebug version 2.2.x

With version 2.2.3 all seems allright. But then I got

[Sat Mar 03 12:13:45 2012] [notice] child pid 6276 exit signal Segmentation fault (11)

in the apache error log and the debugger crashed. The culprit was the mysqli_init() statement initiated from Drupal6.
(Drupal7 isn't affected because it does not apply this statement any more.)

The bug vanished after manually downgrading Xdebug to 2.2.2 again.

So I urge you to change the php-xdebug package to 2.1.x or 2.2.x but not to 2.3.x unless you dont lift the PHP version.

Revision history for this message
sry but private (auto74939377) wrote :

With version 2.2.3 all seems allright.

correction: With version 2.3.x all seems allright.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

sry, thanks for taking the time to file this bug report and help us make Ubuntu better.

We'd like to help but its not clear what exactly this bug report is meant to accoplish.

In a bug report we need this to address it:

* What you want to accomplish
* What activity you performed to accomplish it
* What you expect to happen
* What actually happens.

Thank you!

Marking Incomplete pending response.

Changed in php5 (Ubuntu):
status: New → Incomplete
Revision history for this message
sry but private (auto74939377) wrote :

The packages

libapache2-mod-php5 (PHP Version 5.3.2-1ubuntu4.14)
php5-xdebug (2.0.5-1ubuntu1)

delivered with Ubuntu 10.04 LTS don't work properly. Xdebug provides an interface to IDEs like netbeans or eclipse. This interface is broken. Normally it is possible to display the values of variables with Xdebug. But version 2.0.x fails to do so. Version 2.1.x and 2.2.x work properly as I experienced. Xdebug 2.3.x produces another bug because it is written for higher PHP versions than 5.3.2.

There are 3 options:

1. Replace Xdebug package with 2.1.x or 2.2.x
2. Replace PHP and Xdebug 2.3.x and 5.3.9/5.4.x respectively
3. Ask people to help themselves (by compiling their own version of XDebug and PHP)

I would recommend option 1, because it has minimal side effects. To lift PHP versions is risky. I myself was punished a lot for updating PHP only for having the newest version.

Revision history for this message
sry but private (auto74939377) wrote :

Sorry this bug is substantially the same as

https://bugs.launchpad.net/ubuntu/+source/xdebug/+bug/820797

but because xdebug and php have reached new versions there are new incompatibilities as mentioned above.

Revision history for this message
James Page (james-page) wrote :

Hi sry

Thanks for the extra information.

More recent versions of Ubuntu ship xdebug 2.1.0 which I think should fix your issue (but does not help you in the short term)

With regards to getting this more recent version into Lucid I would recommend that you follow the backports process:

 https://wiki.ubuntu.com/UbuntuBackports

Thanks

Changed in php5 (Ubuntu):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.