Compatible for PHP 7.4

This commit is contained in:
CismonX 2019-01-18 20:58:05 +08:00
parent 14c4c57736
commit fddc87e95d
1 changed files with 6 additions and 0 deletions

View File

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