https://project.math.uzh.ch/
https://project.math.uzh.ch/favicon.ico?1666878389
2018-06-18T08:03:59Z
Project @ iMath
QFQ - Bug #6247: Class File.php: php function 'each' (line 92) is deprecated - replace
https://project.math.uzh.ch/issues/6247?journal_id=17873
2018-06-18T08:03:59Z
Benjamin Baer
benjamin.baer@math.uzh.ch
<ul></ul><p>What is this? :o<br /><a class="external" href="https://secure.php.net/manual/en/control-structures.foreach.php">https://secure.php.net/manual/en/control-structures.foreach.php</a></p>
<pre>
<?php
$arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
$value = $value * 2;
}
// $arr is now array(2, 4, 6, 8)
// without an unset($value), $value is still a reference to the last item: $arr[3]
foreach ($arr as $key => $value) {
// $arr[3] will be updated with each value from $arr...
echo "{$key} => {$value} ";
print_r($arr);
}
// ...until ultimately the second-to-last value is copied onto the last value
// output:
// 0 => 2 Array ( [0] => 2, [1] => 4, [2] => 6, [3] => 2 )
// 1 => 4 Array ( [0] => 2, [1] => 4, [2] => 6, [3] => 4 )
// 2 => 6 Array ( [0] => 2, [1] => 4, [2] => 6, [3] => 6 )
// 3 => 6 Array ( [0] => 2, [1] => 4, [2] => 6, [3] => 6 )
?>
</pre>
<p>Back to javascript. :p</p>
QFQ - Bug #6247: Class File.php: php function 'each' (line 92) is deprecated - replace
https://project.math.uzh.ch/issues/6247?journal_id=18064
2018-06-26T11:02:05Z
Carsten Rose
carsten.rose@math.uzh.ch
<ul><li><strong>Assignee</strong> set to <i>Elias Villiger</i></li></ul>
QFQ - Bug #6247: Class File.php: php function 'each' (line 92) is deprecated - replace
https://project.math.uzh.ch/issues/6247?journal_id=18154
2018-06-29T15:31:41Z
Elias Villiger
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul>
QFQ - Bug #6247: Class File.php: php function 'each' (line 92) is deprecated - replace
https://project.math.uzh.ch/issues/6247?journal_id=18442
2018-07-09T19:59:04Z
Elias Villiger
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li></ul>
QFQ - Bug #6247: Class File.php: php function 'each' (line 92) is deprecated - replace
https://project.math.uzh.ch/issues/6247?journal_id=20132
2018-09-21T20:30:34Z
Carsten Rose
carsten.rose@math.uzh.ch
<ul><li><strong>Target version</strong> changed from <i>18.10.3</i> to <i>18.9.2</i></li></ul>