diff --git a/src/collections_me.c b/src/collections_me.c index 0e06003..de65a88 100644 --- a/src/collections_me.c +++ b/src/collections_me.c @@ -6,6 +6,12 @@ #include "php_collections_me.h" +// ZEND_ACC_CTOR is removed in PHP 7.4 +// Removing the flag does not affect the constructor from being recognized. +#if PHP_VERSION_ID >= 70400 +#define ZEND_ACC_CTOR 0 +#endif + ZEND_BEGIN_ARG_INFO(action_arginfo, 0) ZEND_ARG_CALLABLE_INFO(0, action, 0) ZEND_END_ARG_INFO()