summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-09 23:06:30 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-11 16:52:04 +0200
commit4865592525e543f87deb51f5fd22022684b17f83 (patch)
tree7d0f3ad509a72388c9be4d8da0bfe042f3919fbb
parent43eca196e7d33a45d64da0fd3a97c874d504288e (diff)
downloadphp-git-4865592525e543f87deb51f5fd22022684b17f83.tar.gz
Remove old ARG_COUNT() macro
Use ZEND_NUM_ARGS() instead. Clsoes GH-5551
-rw-r--r--UPGRADING.INTERNALS3
-rw-r--r--Zend/zend_API.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 599a024a4e..def57d94b9 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -16,6 +16,7 @@ PHP 8.0 INTERNALS UPGRADE NOTES
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
@@ -114,6 +115,8 @@ PHP 8.0 INTERNALS UPGRADE NOTES
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
========================
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index f97f54af44..234aa9e99d 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -408,7 +408,6 @@ ZEND_API const char *zend_get_type_by_const(int type);
#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; }