mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix strlen error message param name
This commit is contained in:
commit
e223bf2015
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
|
||||
|
|
|
@ -8512,7 +8512,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);
|
||||
|
|
6
Zend/zend_vm_execute.h
generated
6
Zend/zend_vm_execute.h
generated
|
@ -5597,7 +5597,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);
|
||||
|
@ -14770,7 +14770,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);
|
||||
|
@ -39502,7 +39502,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