Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure abort with php 7.2.x compile as extension #68

Open
mmasm opened this issue Apr 9, 2020 · 0 comments
Open

configure abort with php 7.2.x compile as extension #68

mmasm opened this issue Apr 9, 2020 · 0 comments

Comments

@mmasm
Copy link

mmasm commented Apr 9, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant