1
0
Fork 0

Merge pull request #9 from sergeypayu/master

Added PHP7 compilation support
This commit is contained in:
Anton Batenev 2017-12-26 19:52:13 +03:00 committed by GitHub
commit 96df2f4362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -38,8 +38,8 @@ if [ "x${PHP_CONFIG}" = "x" ]; then
exit 1
fi
# 5.3.3-7+squeeze13
PHP_VER=$(${PHP_CONFIG} --version | cut -d '-' -f 1)
PHP_MAJOR_VER=${PHP_VER:0:1}
if [ "x${PHP_VER}" = "x" ]; then
echo "Error: unknown php version"
@ -50,7 +50,7 @@ PHP_SRC="php-${PHP_VER}"
PHP_TGZ="${PHP_SRC}.tar.gz"
if [ ! -f "${PHP_TGZ}" ]; then
wget "http://museum.php.net/php5/${PHP_TGZ}"
wget "http://museum.php.net/php${PHP_MAJOR_VER}/${PHP_TGZ}"
if [ $? -ne 0 ]; then
# newest version?
wget -O "${PHP_TGZ}" "http://ru2.php.net/get/${PHP_TGZ}/from/this/mirror"

View file

@ -16,6 +16,8 @@ if test "$PHP_PDO_SQLCIPHER" != "no"; then
pdo_inc_path=$abs_srcdir/ext
elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$abs_srcdir/ext
elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$phpincludedir/ext
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$prefix/include/php/ext
elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then