mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Fix compiling with PHP 8.5.0 alpha3 and newer
This commit is contained in:
committed by
Michael Grunder
parent
ca80ee0e67
commit
1e6f5477cb
5
common.h
5
common.h
@@ -11,7 +11,12 @@
|
||||
#include <ext/standard/php_var.h>
|
||||
#include <ext/standard/php_math.h>
|
||||
#include <zend_smart_str.h>
|
||||
#if PHP_VERSION_ID < 70200
|
||||
#include <ext/standard/php_smart_string.h>
|
||||
#else
|
||||
#include "zend_string.h"
|
||||
#endif
|
||||
|
||||
|
||||
#define PHPREDIS_GET_OBJECT(class_entry, o) (class_entry *)((char *)o - XtOffsetOf(class_entry, std))
|
||||
#define PHPREDIS_ZVAL_GET_OBJECT(class_entry, z) PHPREDIS_GET_OBJECT(class_entry, Z_OBJ_P(z))
|
||||
|
||||
Reference in New Issue
Block a user