From 6e0d5c46df21f938389708af5eb5530e919e5225 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 16 Sep 2016 16:04:31 +0200 Subject: php-sqlsrv: build from sources \o/ --- sqlsrv-pr155.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sqlsrv-pr155.patch (limited to 'sqlsrv-pr155.patch') diff --git a/sqlsrv-pr155.patch b/sqlsrv-pr155.patch new file mode 100644 index 0000000..f655f40 --- /dev/null +++ b/sqlsrv-pr155.patch @@ -0,0 +1,23 @@ +From 66f003c661c430031f7a55bd470fe0da1536a5b1 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 16 Sep 2016 15:53:20 +0200 +Subject: [PATCH] Fix PHP 7.1 build + +--- + source/sqlsrv/stmt.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/source/sqlsrv/stmt.cpp b/source/sqlsrv/stmt.cpp +index 90bb025..b3f1dac 100644 +--- a/source/sqlsrv/stmt.cpp ++++ b/source/sqlsrv/stmt.cpp +@@ -881,7 +881,9 @@ PHP_FUNCTION( sqlsrv_fetch_object ) + + memset( &fci, 0, sizeof( fci )); + fci.size = sizeof( fci ); ++#if PHP_VERSION_ID < 70100 + fci.function_table = &( class_entry )->function_table; ++#endif + ZVAL_UNDEF( &( fci.function_name ) ); + fci.retval = &ctor_retval_z; + fci.param_count = num_params; -- cgit