mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix strlen error message param name
This commit is contained in:
parent
e633be3e87
commit
1be99faeff
3 changed files with 5 additions and 5 deletions
|
@ -32,4 +32,4 @@ try {
|
|||
*** Trying Array Map With Invalid Callback
|
||||
*** Caught array_map(): Argument #1 ($callback) must be a valid callback or null, first array member is not a valid class name or object
|
||||
*** Trying Strlen With Float
|
||||
*** Caught strlen(): Argument #1 ($str) must be of type string, float given
|
||||
*** Caught strlen(): Argument #1 ($string) must be of type string, float given
|
||||
|
|
|
@ -8451,7 +8451,7 @@ ZEND_VM_COLD_CONST_HANDLER(121, ZEND_STRLEN, CONST|TMPVAR|CV, ANY)
|
|||
zval_ptr_dtor(&tmp);
|
||||
}
|
||||
if (!EG(exception)) {
|
||||
zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_zval_type_name(value));
|
||||
zend_type_error("strlen(): Argument #1 ($string) must be of type string, %s given", zend_zval_type_name(value));
|
||||
}
|
||||
ZVAL_UNDEF(EX_VAR(opline->result.var));
|
||||
} while (0);
|
||||
|
|
|
@ -5523,7 +5523,7 @@ static ZEND_VM_COLD ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_CONST
|
|||
zval_ptr_dtor(&tmp);
|
||||
}
|
||||
if (!EG(exception)) {
|
||||
zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_zval_type_name(value));
|
||||
zend_type_error("strlen(): Argument #1 ($string) must be of type string, %s given", zend_zval_type_name(value));
|
||||
}
|
||||
ZVAL_UNDEF(EX_VAR(opline->result.var));
|
||||
} while (0);
|
||||
|
@ -14679,7 +14679,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_TMPVAR_HANDLER(ZEN
|
|||
zval_ptr_dtor(&tmp);
|
||||
}
|
||||
if (!EG(exception)) {
|
||||
zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_zval_type_name(value));
|
||||
zend_type_error("strlen(): Argument #1 ($string) must be of type string, %s given", zend_zval_type_name(value));
|
||||
}
|
||||
ZVAL_UNDEF(EX_VAR(opline->result.var));
|
||||
} while (0);
|
||||
|
@ -39285,7 +39285,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_STRLEN_SPEC_CV_HANDLER(ZEND_OP
|
|||
zval_ptr_dtor(&tmp);
|
||||
}
|
||||
if (!EG(exception)) {
|
||||
zend_type_error("strlen(): Argument #1 ($str) must be of type string, %s given", zend_zval_type_name(value));
|
||||
zend_type_error("strlen(): Argument #1 ($string) must be of type string, %s given", zend_zval_type_name(value));
|
||||
}
|
||||
ZVAL_UNDEF(EX_VAR(opline->result.var));
|
||||
} while (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue