pecl-memcache icon indicating copy to clipboard operation
pecl-memcache copied to clipboard

configure abort with php 7.2.x compile as extension

Open mmasm opened this issue 4 years ago • 0 comments

abort configure at PHP version check

please see for patch in config9.m4:

AC_MSG_CHECKING(PHP version)
  if test -z "$PHP_MAJOR_VERSION"; then
	if test ! -z "$phpincludedir"; then
    	PHP_MAJOR_VERSION=`grep 'PHP_MAJOR_VERSION ' $phpincludedir/main/php_version.h | sed -e 's/.*\([[0-9\.]]*\).*/\1/g' 2>/dev/null`
	elif test ! -z "$PHP_CONFIG"; then
    	PHP_MAJOR_VERSION=`$PHP_CONFIG --version | cut -d. -f1 2>/dev/null`
        else 
        PHP_MAJOR_VERSION=0
	fi
  fi
  		
  if test $PHP_MAJOR_VERSION -ge 7; then
  	subdir=php7
  	AC_MSG_RESULT([PHP 7.x])
  else
  	AC_MSG_ERROR([PHP 7.x required for pecl-php-memcache ver 4+. Use pecl-php-memcache ver 3.x for PHP 5.x.])
  fi

mmasm avatar Apr 09 '20 12:04 mmasm