Skip to content

Commit 4865592

Browse files
committed
Remove old ARG_COUNT() macro
Use ZEND_NUM_ARGS() instead. Clsoes phpGH-5551
1 parent 43eca19 commit 4865592

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

UPGRADING.INTERNALS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PHP 8.0 INTERNALS UPGRADE NOTES
1616
m. All internal functions must have arginfo
1717
n. zend_hash_sort compare function signature change
1818
o. cast_object() object handler is now required
19+
p. ARG_COUNT() macro removed
1920

2021
2. Build system changes
2122
a. Abstract
@@ -114,6 +115,8 @@ PHP 8.0 INTERNALS UPGRADE NOTES
114115
o. The cast_object() handler is now required, i.e. must be non-null. You can
115116
indicate that casting is not supported by always returning FAILURE.
116117

118+
p. The ARG_COUNT() macro has been removed use ZEND_NUM_ARGS() instead.
119+
117120
========================
118121
2. Build system changes
119122
========================

Zend/zend_API.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ ZEND_API const char *zend_get_type_by_const(int type);
408408

409409
#define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT()
410410
#define WRONG_PARAM_COUNT_WITH_RETVAL(ret) ZEND_WRONG_PARAM_COUNT_WITH_RETVAL(ret)
411-
#define ARG_COUNT(dummy) EX_NUM_ARGS()
412411
#define ZEND_NUM_ARGS() EX_NUM_ARGS()
413412
#define ZEND_WRONG_PARAM_COUNT() { zend_wrong_param_count(); return; }
414413
#define ZEND_WRONG_PARAM_COUNT_WITH_RETVAL(ret) { zend_wrong_param_count(); return ret; }

0 commit comments

Comments
 (0)