]> granicus.if.org Git - php/commitdiff
- Fix bug report by Andrei when using a method as a sort user function
authorAndi Gutmans <andi@php.net>
Tue, 22 Aug 2000 18:35:42 +0000 (18:35 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 22 Aug 2000 18:35:42 +0000 (18:35 +0000)
- parameter in usort() like functions

Zend/zend_execute_API.c

index 8a3f147bfb5f601180f69298aa1ce3cef404e7ee..d67c98395aff2b4435970becafaad0ee001ff667 100644 (file)
@@ -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) {