diff options
Diffstat (limited to 'Zend/zend_execute_API.c')
| -rw-r--r-- | Zend/zend_execute_API.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 8a3f147bfb..d67c98395a 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -356,7 +356,9 @@ int call_user_function_ex(HashTable *function_table, zval *object, zval *functio  			return FAILURE;  		}  		function_name = *tmp_real_function_name; +		SEPARATE_ZVAL_IF_NOT_REF(tmp_object_ptr);  		object = *tmp_object_ptr; +		object->is_ref = 1;  	}  	if (object) {  | 
