From 2c6f8751f322f04232d744d8f177bb4f97a5673b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Jul 2019 09:06:45 +0200 Subject: add patch for 7.4.0beta1 from https://github.com/microsoft/msphpsql/pull/1013 --- 1013.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 1013.patch (limited to '1013.patch') diff --git a/1013.patch b/1013.patch new file mode 100644 index 0000000..581ef14 --- /dev/null +++ b/1013.patch @@ -0,0 +1,25 @@ +From c0ee075892d8d38f0f47981f8e4db214a4a86d1a Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 24 Jul 2019 07:30:26 +0200 +Subject: [PATCH] fix for 7.4.0beta1 + +--- + source/shared/core_stream.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/source/shared/core_stream.cpp b/source/shared/core_stream.cpp +index d822d4a85..559498b8e 100644 +--- a/source/shared/core_stream.cpp ++++ b/source/shared/core_stream.cpp +@@ -44,7 +44,11 @@ int sqlsrv_stream_close( _Inout_ php_stream* stream, int /*close_handle*/ TSRMLS + // read from a sqlsrv stream into the buffer provided by Zend. The parameters for binary vs. char are + // set when sqlsrv_get_field is called by the user specifying which field type they want. + ++#if PHP_VERSION_ID < 70400 + size_t sqlsrv_stream_read( _Inout_ php_stream* stream, _Out_writes_bytes_(count) char* buf, _Inout_ size_t count TSRMLS_DC ) ++#else ++ssize_t sqlsrv_stream_read( _Inout_ php_stream* stream, _Out_writes_bytes_(count) char* buf, _Inout_ size_t count TSRMLS_DC ) ++#endif + { + SQLLEN read = 0; + SQLSMALLINT c_type = SQL_C_CHAR; -- cgit