Skip to content

Commit 8093893

Browse files
authored
ext/dba: Remove arg num check prior to ZPP checks (php#15401)
1 parent ec2655f commit 8093893

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/dba/dba.c

-3
Original file line numberDiff line numberDiff line change
@@ -1103,9 +1103,6 @@ PHP_FUNCTION(dba_key_split)
11031103
char *key, *name;
11041104
size_t key_len;
11051105

1106-
if (ZEND_NUM_ARGS() != 1) {
1107-
WRONG_PARAM_COUNT;
1108-
}
11091106
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "z", &zkey) == SUCCESS) {
11101107
if (Z_TYPE_P(zkey) == IS_NULL || (Z_TYPE_P(zkey) == IS_FALSE)) {
11111108
php_error_docref(NULL, E_DEPRECATED, "Passing false or null is deprecated since 8.4");

0 commit comments

Comments
 (0)