From 96906b30b29222eadb6796b79d889c982abb630a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Aug 2017 15:07:26 +0200 Subject: [PATCH] Fix for PHP version 7.2 (#121) --- .travis.yml | 2 ++ src/php_tarantool.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d0b7e9d..e3ea022 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ language: php php: - 7.0 + - 7.1 + - nightly python: - 2.7 diff --git a/src/php_tarantool.h b/src/php_tarantool.h index 1679eb7..bab2a49 100644 --- a/src/php_tarantool.h +++ b/src/php_tarantool.h @@ -17,7 +17,10 @@ # include "config.h" #endif -#if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID >= 70200 +# include +# define smart_string_alloc4(d, n, what, newlen) newlen = smart_string_alloc(d, n, what) +#elif PHP_VERSION_ID >= 70000 # include #else # include