mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Second argument of call_user_method is ref
This commit is contained in:
parent
00cf4e5a58
commit
2d45dce4aa
1 changed files with 4 additions and 0 deletions
|
@ -4824,6 +4824,8 @@ PHP_FUNCTION(call_user_method)
|
|||
return;
|
||||
}
|
||||
|
||||
object = Z_REFVAL_P(object);
|
||||
|
||||
if (Z_TYPE_P(object) != IS_OBJECT &&
|
||||
Z_TYPE_P(object) != IS_STRING
|
||||
) {
|
||||
|
@ -4856,6 +4858,8 @@ PHP_FUNCTION(call_user_method_array)
|
|||
return;
|
||||
}
|
||||
|
||||
object = Z_REFVAL_P(object);
|
||||
|
||||
if (Z_TYPE_P(object) != IS_OBJECT &&
|
||||
Z_TYPE_P(object) != IS_STRING
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue