aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utf
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-09-27 22:32:20 +0200
committerNils Adermann <naderman@naderman.de>2011-09-27 22:32:20 +0200
commitb197ea56c23188f4fd160c736c2d1840e987180a (patch)
tree9e1c8df9d11d77c507cf35534bda6628263f2861 /tests/utf
parentb571b3e0326cc6fe987ceb317ee803d4921cc133 (diff)
downloadforums-b197ea56c23188f4fd160c736c2d1840e987180a.tar
forums-b197ea56c23188f4fd160c736c2d1840e987180a.tar.gz
forums-b197ea56c23188f4fd160c736c2d1840e987180a.tar.bz2
forums-b197ea56c23188f4fd160c736c2d1840e987180a.tar.xz
forums-b197ea56c23188f4fd160c736c2d1840e987180a.zip
[ticket/10394] Use call_user_func_array to pass a ref into a dynamic function
PHPBB3-10394
Diffstat (limited to 'tests/utf')
-rw-r--r--tests/utf/normalizer_test.php4
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)");