diff options
author | Dmitry Stogov <dmitry@php.net> | 2010-10-12 07:38:36 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2010-10-12 07:38:36 +0000 |
commit | bfe51842ab15abe1d7a28ae1324b69c02ad0ef1d (patch) | |
tree | 8dff6a849b355bc912862dc9cf377d89ee67ce1e | |
parent | 4de6c3a9489cbe4b2d1005f2609908edf916b7ec (diff) | |
download | php-git-bfe51842ab15abe1d7a28ae1324b69c02ad0ef1d.tar.gz |
Added test
-rw-r--r-- | Zend/tests/bug52939.phpt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Zend/tests/bug52939.phpt b/Zend/tests/bug52939.phpt new file mode 100644 index 0000000000..9810b8063f --- /dev/null +++ b/Zend/tests/bug52939.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #52939 (zend_call_function_array does not respect ZEND_SEND_PREFER_REF) +--FILE-- +<?php +$ar1 = array("row1" => 2, "row2" => 1); +var_dump(array_multisort($ar1)); +var_dump($ar1); + +$ar1 = array("row1" => 2, "row2" => 1); +$args = array(&$ar1); +var_dump(call_user_func_array("array_multisort", $args)); +var_dump($ar1); +?> +--EXPECT-- +bool(true) +array(2) { + ["row2"]=> + int(1) + ["row1"]=> + int(2) +} +bool(true) +array(2) { + ["row2"]=> + int(1) + ["row1"]=> + int(2) +} |