Skip to content

Commit 41ba820

Browse files
author
Martin Köditz
committed
Fixed issue with Blobs on Windows and PHP 8.0. New driver version 1.1.2
1 parent 215eac9 commit 41ba820

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

php_ibase_includes.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,14 @@ ZEND_TSRMLS_CACHE_EXTERN()
139139
#define BLOB_INPUT 1
140140
#define BLOB_OUTPUT 2
141141

142+
142143
#ifdef PHP_WIN32
143-
#define LL_MASK "I64"
144+
// Case switch, because of troubles on Windows and PHP 8.0
145+
#if PHP_VERSION_ID < 80000
146+
#define LL_MASK "I64"
147+
#else
148+
#define LL_MASK "ll"
149+
#endif
144150
#define LL_LIT(lit) lit ## I64
145151
typedef void (__stdcall *info_func_t)(char*);
146152
#else

php_interbase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern zend_module_entry ibase_module_entry;
2525
#define phpext_interbase_ptr &ibase_module_entry
2626

2727
#include "php_version.h"
28-
#define PHP_INTERBASE_VERSION "1.1.1"
28+
#define PHP_INTERBASE_VERSION "1.1.2"
2929

3030
PHP_MINIT_FUNCTION(ibase);
3131
PHP_RINIT_FUNCTION(ibase);

0 commit comments

Comments
 (0)