com php-src: Second argument of call_user_method is ref : ext/standard/basic_functions.c
| From: | Dmitry Stogov | Date: | Thu, 06 Mar 2014 15:32:47 +0000 |
| Subject: | com php-src: Second argument of call_user_method is ref : ext/standard/basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77698@lists.php.net to get a copy of this message | ||
Commit: 2d45dce4aa3e00f5d0bf40cc19d81033c3ce08bc
Author: Xinchen Hui <laruence@gmail.com> Thu, 6 Mar 2014 23:31:23 +0800
Parents: 00cf4e5a58528083a9a3f78f9e97ea4673747758
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d45dce4aa3e00f5d0bf40cc19d81033c3ce08bc
Log:
Second argument of call_user_method is ref
Changed paths:
M ext/standard/basic_functions.c
Diff:
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 8e52a8b..47331e3 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -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
) {