Use ZEND_NUM_ARGS() instead.
Clsoes GH-5551
m. All internal functions must have arginfo
n. zend_hash_sort compare function signature change
o. cast_object() object handler is now required
+ p. ARG_COUNT() macro removed
2. Build system changes
a. Abstract
o. The cast_object() handler is now required, i.e. must be non-null. You can
indicate that casting is not supported by always returning FAILURE.
+ p. The ARG_COUNT() macro has been removed use ZEND_NUM_ARGS() instead.
+
========================
2. Build system changes
========================
#define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT()
#define WRONG_PARAM_COUNT_WITH_RETVAL(ret) ZEND_WRONG_PARAM_COUNT_WITH_RETVAL(ret)
-#define ARG_COUNT(dummy) EX_NUM_ARGS()
#define ZEND_NUM_ARGS() EX_NUM_ARGS()
#define ZEND_WRONG_PARAM_COUNT() { zend_wrong_param_count(); return; }
#define ZEND_WRONG_PARAM_COUNT_WITH_RETVAL(ret) { zend_wrong_param_count(); return ret; }