diff options
| author | Andi Gutmans <andi@php.net> | 2000-08-22 18:35:42 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-08-22 18:35:42 +0000 |
| commit | 207814916d5711d642067e3bef853145785bbd03 (patch) | |
| tree | de64de023f6e0b2c2bcea5a69a7b5e333add002a /Zend/zend_execute_API.c | |
| parent | 5d09d7d811c9005960c1c8c120c2c3f81006acce (diff) | |
| download | php-git-207814916d5711d642067e3bef853145785bbd03.tar.gz | |
- Fix bug report by Andrei when using a method as a sort user function
- parameter in usort() like functions
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) { |
