示例#1
0
function bar()
{
    $x = array('y' => junk());
    $x['x'] += 1;
    $val = $x['x'];
    var_dump(is_null($val));
    var_dump(is_array($val));
}
示例#2
0
function bar()
{
    $y = 'heyo';
    $x = array('y' => junk());
    $x['x']->hehe =& $y;
    $y = $x['x']->hehe;
    $val = $x['x'];
    var_dump(is_object($y));
    var_dump(is_null($val));
    var_dump(is_array($x));
}
示例#3
0
function bar()
{
    $y = null;
    $x = array('z' => junk());
    unset($x['z']);
    $val = $x['z'];
    var_dump(is_null($val));
    var_dump(is_int($val));
    var_dump(is_array($x));
    var_dump($x);
}
示例#4
0
function bar()
{
    $y = null;
    $x = array('z' => junk());
    $x['z'] =& $y;
    $y = 'heh';
    $val = $x['z'];
    var_dump(is_null($val));
    var_dump(is_array($val));
    var_dump(is_array($x));
    var_dump($x);
}
示例#5
0
function bar()
{
    $x = array('x' => array('y' => junk()));
    $x['x']['y']++;
    $val = $x['x'];
    $val2 = $x['x']['y'];
    var_dump(is_null($val));
    var_dump(is_array($val));
    var_dump(is_null($val2));
    var_dump(is_array($val2));
    var_dump(is_array($x));
    var_dump($x);
}
示例#6
0
function bar()
{
    $y = null;
    $x = array('z' => junk());
    $x['x']['y'] =& $y;
    $val = $x['x'];
    $val2 = $x['x']['y'];
    var_dump(is_null($val));
    var_dump(is_array($val));
    var_dump(is_null($val2));
    var_dump(is_array($val2));
    var_dump(is_array($x));
    var_dump($x);
}
示例#7
0
function bar()
{
    $y = null;
    $x = array('l' => junk());
    $y =& $x['z']['k'];
    $y = 'heh';
    $val = $x['z'];
    $val2 = $x['z']['k'];
    var_dump(is_null($val));
    var_dump(is_array($val));
    var_dump(is_null($val2));
    var_dump(is_array($val2));
    var_dump(is_array($x));
    var_dump($x);
}