mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
05e0568ef1
commit
3cf7e93a10
23
Reftest.php
23
Reftest.php
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
class Test
|
||||
{
|
||||
protected $filters = array();
|
||||
|
||||
public function work()
|
||||
{
|
||||
foreach ($this->getFilters() as $key => &$value) {
|
||||
$value = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public function &getFilters()
|
||||
{
|
||||
return $this->filters;
|
||||
}
|
||||
}
|
||||
|
||||
$x = new Test();
|
||||
$b =& $x->getFilters();
|
||||
$b[1] = 0;
|
||||
var_dump($b, $x->getFilters());die;
|
Loading…
x
Reference in New Issue
Block a user