1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/9608] Remove use of references in captcha and other places

References are not really needed in PHP due to copy-on-write. Since
PHP5, objects are always passed around as identifiers, which means they
are mutable. So it is no longer required to pass these by reference
either.

PHPBB3-9608
This commit is contained in:
Igor Wiedler
2011-07-13 11:32:38 +02:00
parent 09e0460e5b
commit 4bdad7125a
12 changed files with 27 additions and 27 deletions

View File

@@ -507,7 +507,7 @@ class utf_normalizer
do
{
$_utf_len =& $utf_len_mask[$decomp_map[$utf_char][$_pos] & "\xF0"];
$_utf_len = $utf_len_mask[$decomp_map[$utf_char][$_pos] & "\xF0"];
if (isset($_utf_len))
{
@@ -563,7 +563,7 @@ class utf_normalizer
do
{
$c = $decomp_map[$utf_char][$_pos];
$_utf_len =& $utf_len_mask[$c & "\xF0"];
$_utf_len = $utf_len_mask[$c & "\xF0"];
if (isset($_utf_len))
{
@@ -636,7 +636,7 @@ class utf_normalizer
do
{
$c = $decomp_map[$utf_char][$_pos];
$_utf_len =& $utf_len_mask[$c & "\xF0"];
$_utf_len = $utf_len_mask[$c & "\xF0"];
if (isset($_utf_len))
{
@@ -717,7 +717,7 @@ class utf_normalizer
do
{
$c = $decomp_map[$utf_char][$_pos];
$_utf_len =& $utf_len_mask[$c & "\xF0"];
$_utf_len = $utf_len_mask[$c & "\xF0"];
if (isset($_utf_len))
{
@@ -1064,7 +1064,7 @@ class utf_normalizer
do
{
$c = $decomp_map[$utf_char][$_pos];
$_utf_len =& $utf_len_mask[$c & "\xF0"];
$_utf_len = $utf_len_mask[$c & "\xF0"];
if (isset($_utf_len))
{