From:             [EMAIL PROTECTED]
Operating system: Solaris
PHP version:      4.2.1
PHP Bug Type:     Apache2 related
Bug description:  PHP 4.2.x apache2filter does not recognize -dev versions


sapi/apache2filter/config.m4 fails to recognize Apache 2.x.x-dev (CVS)
version strings and thus the test for Apache version gt 2.0.0 fails.

Attached is a patch to compensate for "-dev" being in the version string.

*** config.m4.orig      Tue May 14 21:44:07 2002
--- config.m4   Tue May 14 21:42:52 2002
***************
*** 34,40 ****
    APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`

    # Test that we're trying to configure with apache 2.x
!   APACHE_VERSION=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2
-d'/' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 +
$3;}'`
    if test "$APACHE_VERSION" -le 2000000; then
      AC_MSG_ERROR([Use --with-apxs with Apache 1.3.x!])
    elif test "$APACHE_VERSION" -lt 2000035; then
--- 34,40 ----
    APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`

    # Test that we're trying to configure with apache 2.x
!   APACHE_VERSION=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2
-d'/' | cut -f1 -d'-' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000
+ $2) * 1000 + $3;}'`
    if test "$APACHE_VERSION" -le 2000000; then
      AC_MSG_ERROR([Use --with-apxs with Apache 1.3.x!])
    elif test "$APACHE_VERSION" -lt 2000035; then

-- 
Edit bug report at http://bugs.php.net/?id=17233&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17233&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17233&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17233&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17233&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17233&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17233&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17233&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17233&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17233&r=globals

Reply via email to