Fix compiling with PHP 8.5.0 alpha3 and newer

This commit is contained in:
Wyatt OʼDay
2025-07-30 03:16:04 -07:00
committed by Michael Grunder
parent ca80ee0e67
commit 1e6f5477cb

View File

@@ -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))