ext/dba: Remove arg num check prior to ZPP checks (#15401)

This commit is contained in:
Gina Peter Banyard 2024-08-14 20:20:11 +01:00 committed by GitHub
parent ec2655f88b
commit 8093893496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1103,9 +1103,6 @@ PHP_FUNCTION(dba_key_split)
char *key, *name;
size_t key_len;
if (ZEND_NUM_ARGS() != 1) {
WRONG_PARAM_COUNT;
}
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "z", &zkey) == SUCCESS) {
if (Z_TYPE_P(zkey) == IS_NULL || (Z_TYPE_P(zkey) == IS_FALSE)) {
php_error_docref(NULL, E_DEPRECATED, "Passing false or null is deprecated since 8.4");