Commit bbf82d7a84c for php.net
commit bbf82d7a84c4fa10fd57ab438082e322758ba373
Author: Gina Peter Banyard <girgias@php.net>
Date: Sun Aug 2 20:25:27 2026 +0100
Zend: Remove ZPP_ERROR_WRONG_COUNT case
As it is unused, the relevant error is handled before and _error_code is assigned ZPP_ERROR_FAILURE.
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 84e7c8e1880..758977e07d6 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -262,7 +262,6 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_error(zpp_error error
ZEND_ASSERT(EG(exception) && "Should have produced an error already");
break;
case ZPP_ERROR_OK:
- case ZPP_ERROR_WRONG_COUNT:
ZEND_UNREACHABLE();
}
}
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index e83aec34ef0..a3e4e1690d6 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -1599,7 +1599,6 @@ C23_ENUM(zpp_error, uint8_t) {
ZPP_ERROR_WRONG_CLASS_OR_LONG,
ZPP_ERROR_WRONG_CLASS_OR_LONG_OR_NULL,
ZPP_ERROR_WRONG_ARG,
- ZPP_ERROR_WRONG_COUNT,
ZPP_ERROR_UNEXPECTED_EXTRA_NAMED,
ZPP_ERROR_WRONG_CALLBACK_OR_NULL,
};