From: peter dot buki at vodafone dot hu Operating system: SunOS 5.9 Generic_112233-01 PHP version: 5.1.0RC1 PHP Bug Type: Compile Failure Bug description: APACHE_VERSION variable in configure is nonsense
Description: ------------ Variable APACHE_VERSION is calculated in a wrong way, because configure halts, event if the apache has the required and set with --with-apxs2 version configure returns with syntax error: expr: syntax error configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2) Please see possibly related bugs: Bug #20457: APACHE_VERSION variable in configure is nonsense Bug #23416: configure not knowing apache version Reproduce code: --------------- ./config.nice: CC='gcc -m64 -mcpu=v9' \ './configure' \ '--with-apxs2=/usr/apache/bin/apxs' \ '--libexecdir=/usr/apache/libexec' \ '--enable-sysvmsg' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-mbstring=all' \ '--enable-sigchild' \ '--enable-sockets' \ '--enable-mbstring' \ '--with-postgresql=/usr/local/pgsql/' \ '--disable-shared' \ '--with-libxml-dir=/usr/local' \ "$@" Expected result: ---------------- Configure going on with no errors. Actual result: -------------- configure returns with syntax error: expr: syntax error configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2) Added this line to configure (line 4226, 5534, 6366): echo APACHE_VERSION \($APACHE_VERSION\) is calculated: $4 \* 1000000 + $5 \* 1000 + $6 which prints this: APACHE_VERSION () is calculated: * 1000000 + * 1000 + -- Edit bug report at http://bugs.php.net/?id=34509&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34509&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34509&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34509&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34509&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34509&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34509&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34509&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34509&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34509&r=support Expected behavior: http://bugs.php.net/fix.php?id=34509&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34509&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34509&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34509&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34509&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34509&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34509&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34509&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34509&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34509&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34509&r=mysqlcfg