From: Andi Gutmans Date: Tue, 22 Aug 2000 18:35:42 +0000 (+0000) Subject: - Fix bug report by Andrei when using a method as a sort user function X-Git-Tag: php-4.0.2~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=207814916d5711d642067e3bef853145785bbd03;p=php - Fix bug report by Andrei when using a method as a sort user function - parameter in usort() like functions --- 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) {