From fef1314941e055180df9fd8af29e0ca3e6de795c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 24 Jun 2017 11:14:25 +0200 Subject: add patch for PHP 7.2 --- 121.patch | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 121.patch (limited to '121.patch') diff --git a/121.patch b/121.patch new file mode 100644 index 0000000..11a7b08 --- /dev/null +++ b/121.patch @@ -0,0 +1,49 @@ +From 953c723a59fb437fccea9aeaf4c7f69c112f6308 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sat, 24 Jun 2017 10:59:29 +0200 +Subject: [PATCH 1/2] fix for 7.2 + +--- + .travis.yml | 2 ++ + src/php_tarantool.h | 5 ++++- + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/php_tarantool.h b/src/php_tarantool.h +index 1679eb7..7556671 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) smart_string_alloc(d, n, what) ++#elif PHP_VERSION_ID >= 70000 + # include + #else + # include + +From b8b1a2efdcf3ced046a5af19ea18f326bc9d7f49 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sat, 24 Jun 2017 11:11:52 +0200 +Subject: [PATCH 2/2] improve previous + +--- + src/php_tarantool.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/php_tarantool.h b/src/php_tarantool.h +index 7556671..bab2a49 100644 +--- a/src/php_tarantool.h ++++ b/src/php_tarantool.h +@@ -19,7 +19,7 @@ + + #if PHP_VERSION_ID >= 70200 + # include +-# define smart_string_alloc4(d, n, what, newlen) smart_string_alloc(d, n, what) ++# define smart_string_alloc4(d, n, what, newlen) newlen = smart_string_alloc(d, n, what) + #elif PHP_VERSION_ID >= 70000 + # include + #else -- cgit