From fddc87e95d65c3c0aff1a36260f7e2495a3a7b64 Mon Sep 17 00:00:00 2001 From: CismonX Date: Fri, 18 Jan 2019 20:58:05 +0800 Subject: [PATCH] Compatible for PHP 7.4 --- src/collections_me.c | 6 ++++++ 1 file changed, 6 insertions(+) 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()