View Issue Details

IDProjectCategoryView StatusLast Update
0000769XdebugInstallationpublic2012-11-11 13:06
Reporterbkendig Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformMacintoshOSMac OS XOS Version10.6.8
Product Version2.1.0 
Target Version2.2.2Fixed in Version2.2.0 
Summary0000769: Xdebug 2.1.3 fails install because it doesn't understand Zend PHP version
Description

I have Zend Server 5.5 installed on my Mac. ZS5.5 comes with a php binary which reports its version as "5.3.8-ZS5.5.0". I also have the vanilla php 5.3.9 installed, in a directory earlier in my PATH, so that the default php that runs on my system is 5.3.9.

When I try to install Xdebug 2.1.3 with "pear install xdebug", it downloads and tries to build and then fails with these messages:

/private/tmp/pear/temp/xdebug/configure: line 4403: test: : integer expression expected
configure: error: not supported. Need a PHP version < 5.4.0 (found 5.3.8-ZS5.5.0)
ERROR: `/private/tmp/pear/temp/xdebug/configure' failed

I don't understand how it's finding Zend's php binary instead of the vanilla one, but it's being confused by the Zend php's version string.

TagsNo tags attached.
Operating System
PHP Version5.3.8

Activities

bkendig

2012-01-27 15:47

reporter   ~0001897

I found out that the reason it's using Zend's php binary is because the 'pear' script is hardcoded to look for it, instead of in the path.

derick

2012-02-05 17:13

administrator   ~0001909

It should work if you use the correct pear binary from your vanilla PHP version as well. I'm closing this as what ZS is doing to the version number is a "crime "(and goes against the requirements at http://www.php.net/manual/en/function.version-compare.php).

cheers,
Derick

bkendig

2012-02-06 14:56

reporter   ~0001910

The version-checking code in config.m4 splits the php version number by periods, then multiplies each piece by 100. It will fail if the php version number contains anything other than integers and periods.

I don't see version numbering requirements in "http://www.php.net/manual/en/function.version-compare.php"; that only explains how the version_compare() function compares versions.. (If the configure script used php and called version_compare() instead of using awk, it would work.)

derick

2012-11-11 13:06

administrator   ~0002384

I'm closing this, as Xdebug 2.2.x has support for PHP 5.4 now.

Issue History

Date Modified Username Field Change
2012-01-27 15:38 bkendig New Issue
2012-01-27 15:47 bkendig Note Added: 0001897
2012-02-05 17:13 derick Note Added: 0001909
2012-02-05 17:13 derick Status new => resolved
2012-02-05 17:13 derick Resolution open => no change required
2012-02-05 17:13 derick Assigned To => derick
2012-02-06 14:56 bkendig Note Added: 0001910
2012-02-06 14:56 bkendig Status resolved => feedback
2012-02-06 14:56 bkendig Resolution no change required => reopened
2012-03-12 16:49 derick Target Version => 2.2.1
2012-07-14 22:14 derick Target Version 2.2.1 => 2.2.2
2012-11-11 13:06 derick Note Added: 0002384
2012-11-11 13:06 derick Status feedback => resolved
2012-11-11 13:06 derick Fixed in Version => 2.2.0
2012-11-11 13:06 derick Resolution reopened => no change required