diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-08-10 12:02:52 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-08-10 12:02:52 +0000 |
commit | ebd4ab4d7875e2757adecb74e65fd31d846e6948 (patch) | |
tree | 0d755c30d9ab2dbcff7b7c24d26e39a378b4b7ed /ext | |
parent | 779e6d203e4fa159120dfbc0644a3ed386bcf66e (diff) | |
download | php-git-ebd4ab4d7875e2757adecb74e65fd31d846e6948.tar.gz |
Fixed bug #25359 (array_multisort() doesn't work in a function if array is global or reference)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/basic_functions.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 15637475ae..455d8f3668 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -142,6 +142,10 @@ static ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO() +static + ZEND_BEGIN_ARG_INFO(all_args_prefer_ref, ZEND_SEND_PREFER_REF) + ZEND_END_ARG_INFO() + typedef struct _php_shutdown_function_entry { zval **arguments; int arg_count; @@ -449,7 +453,7 @@ function_entry basic_functions[] = { PHP_FE(call_user_func_array, NULL) PHP_FE(call_user_method, second_arg_force_ref) PHP_FE(call_user_method_array, second_arg_force_ref) - PHP_FE(serialize, NULL) + PHP_FE(serialize, NULL) PHP_FE(unserialize, NULL) PHP_FE(var_dump, NULL) @@ -762,7 +766,7 @@ function_entry basic_functions[] = { PHP_FE(compact, NULL) PHP_FE(array_fill, NULL) PHP_FE(range, NULL) - PHP_FE(array_multisort, NULL) + PHP_FE(array_multisort, all_args_prefer_ref) PHP_FE(array_push, first_arg_force_ref) PHP_FE(array_pop, first_arg_force_ref) PHP_FE(array_shift, first_arg_force_ref) |