diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-01-28 10:45:37 -0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-01-28 22:07:10 +0100 |
commit | 4f961e0c4a9f1948bce3f12a8b38c2fce4cfce40 (patch) | |
tree | c2ac1bd7f7f47343e0a739f1a59c8373baad74c3 /ext/standard/type.c | |
parent | 4a7dacb5ee0117a951c8c0e5b1738131b17dda33 (diff) | |
download | php-git-4f961e0c4a9f1948bce3f12a8b38c2fce4cfce40.tar.gz |
Remove explicit intval() param count check
Rely on ZPP instead.
Diffstat (limited to 'ext/standard/type.c')
-rw-r--r-- | ext/standard/type.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/standard/type.c b/ext/standard/type.c index 19cc5d84d4..e0a00aedcb 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -92,9 +92,6 @@ PHP_FUNCTION(intval) zval *num; zend_long base = 10; - if (ZEND_NUM_ARGS() != 1 && ZEND_NUM_ARGS() != 2) { - WRONG_PARAM_COUNT; - } ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_ZVAL(num) Z_PARAM_OPTIONAL |