summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2019-05-08 16:42:02 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2019-05-18 15:59:07 -0300
commit714d9fc358640069bda5540c2b1136a6241c4c94 (patch)
treedf6fa4174cc9c354dce99dd90009f5c4987a0ef6 /ext/standard/string.c
parent256100a9b57113915c4ea7f203a9d094eaa129a0 (diff)
downloadphp-git-714d9fc358640069bda5540c2b1136a6241c4c94.tar.gz
Make chr ZPP failure message consistent with ext/standard
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 446de00908..e0141ffaea 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -2792,11 +2792,7 @@ PHP_FUNCTION(chr)
{
zend_long c;
- if (ZEND_NUM_ARGS() != 1) {
- WRONG_PARAM_COUNT;
- }
-
- ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_QUIET, 1, 1)
+ ZEND_PARSE_PARAMETERS_START(1, 1)
Z_PARAM_LONG(c)
ZEND_PARSE_PARAMETERS_END_EX(c = 0);