Skip to content

Commit

Permalink
Fix [-Wincompatible-pointer-types] with 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Feb 19, 2024
1 parent 866f31e commit cd933d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions php_yaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions yaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd933d8

Please sign in to comment.