We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de6c3a commit bfe5184Copy full SHA for bfe5184
Zend/tests/bug52939.phpt
@@ -0,0 +1,28 @@
1
+--TEST--
2
+Bug #52939 (zend_call_function_array does not respect ZEND_SEND_PREFER_REF)
3
+--FILE--
4
+<?php
5
+$ar1 = array("row1" => 2, "row2" => 1);
6
+var_dump(array_multisort($ar1));
7
+var_dump($ar1);
8
+
9
10
+$args = array(&$ar1);
11
+var_dump(call_user_func_array("array_multisort", $args));
12
13
+?>
14
+--EXPECT--
15
+bool(true)
16
+array(2) {
17
+ ["row2"]=>
18
+ int(1)
19
+ ["row1"]=>
20
+ int(2)
21
+}
22
23
24
25
26
27
28
0 commit comments