diff --git a/php_yaf.h b/php_yaf.h index 9cd6e3a7..6c1174e4 100644 --- a/php_yaf.h +++ b/php_yaf.h @@ -74,7 +74,11 @@ extern zend_module_entry yaf_module_entry; #else #define YAF_WRITE_HANDLER zval * #define YAF_WHANDLER_RET(zv) return zv +#if PHP_VERSION_ID >= 80000 HashTable *yaf_fake_get_gc(zend_object *zobj, zval **table, int *n); +#else +HashTable *yaf_fake_get_gc(zval *zobj, zval **table, int *n); +#endif #endif #if PHP_VERSION_ID < 80000 diff --git a/yaf.c b/yaf.c index d59cdfe5..e7e1b9d8 100644 --- a/yaf.c +++ b/yaf.c @@ -72,7 +72,11 @@ void yaf_iterator_dtor(zend_object_iterator *iter) /* {{{ */ { /* }}} */ #if PHP_VERSION_ID >= 70400 +#if PHP_VERSION_ID >= 80000 HashTable *yaf_fake_get_gc(zend_object *zobj, zval **table, int *n) /* {{{ */ { +#else +HashTable *yaf_fake_get_gc(zval *zobj, zval **table, int *n) /* {{{ */ { +#endif *n = 0; *table = NULL; return NULL;