diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 22:39:30 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-09-27 22:39:30 +0200 |
commit | 86f8851c403bb9f31b43a9656e844e5c925da19a (patch) | |
tree | 92207e3cb69d207f6a665133f6888a0b71d18f23 | |
parent | dad7aa9593940114a8ebfa3bd9518ef1e07d5b3f (diff) | |
parent | b197ea56c23188f4fd160c736c2d1840e987180a (diff) | |
download | forums-86f8851c403bb9f31b43a9656e844e5c925da19a.tar forums-86f8851c403bb9f31b43a9656e844e5c925da19a.tar.gz forums-86f8851c403bb9f31b43a9656e844e5c925da19a.tar.bz2 forums-86f8851c403bb9f31b43a9656e844e5c925da19a.tar.xz forums-86f8851c403bb9f31b43a9656e844e5c925da19a.zip |
Merge remote-tracking branch 'naderman/ticket/10394' into develop-olympus
* naderman/ticket/10394:
[ticket/10394] Use call_user_func_array to pass a ref into a dynamic function
-rw-r--r-- | tests/utf/normalizer_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utf/normalizer_test.php b/tests/utf/normalizer_test.php index f8f2467082..1dc69e283e 100644 --- a/tests/utf/normalizer_test.php +++ b/tests/utf/normalizer_test.php @@ -102,7 +102,7 @@ class phpbb_utf_normalizer_test extends phpbb_test_case foreach ($tests as $test) { $utf_result = $utf_expected; - call_user_func(array('utf_normalizer', $form), $utf_result); + call_user_func_array(array('utf_normalizer', $form), array(&$utf_result)); $hex_result = $this->utf_to_hexseq($utf_result); $this->assertEquals($utf_expected, $utf_result, "$expected == $form($test) ($hex_expected != $hex_result)"); @@ -154,7 +154,7 @@ class phpbb_utf_normalizer_test extends phpbb_test_case foreach (array('nfc', 'nfkc', 'nfd', 'nfkd') as $form) { $utf_result = $utf_expected; - call_user_func(array('utf_normalizer', $form), $utf_result); + call_user_func_array(array('utf_normalizer', $form), array(&$utf_result)); $hex_result = $this->utf_to_hexseq($utf_result); $this->assertEquals($utf_expected, $utf_result, "$hex_expected == $form($hex_tested) ($hex_expected != $hex_result)"); |