503f75d08b
These names don't make sense now that we run both suites the same way.
23 linhas
345 B
PHP
23 linhas
345 B
PHP
<?php
|
|
|
|
function f($a=500, $b) {
|
|
// $b shouldn't show up
|
|
var_dump(get_defined_vars());
|
|
}
|
|
|
|
function modify($arr) {
|
|
$arr['a'] += 200;
|
|
}
|
|
|
|
function rvalue_sort($x) { ksort($x); return $x; }
|
|
|
|
function ref($a) {
|
|
$b =& $a;
|
|
var_dump(rvalue_sort(get_defined_vars()));
|
|
modify(rvalue_sort(get_defined_vars()));
|
|
var_dump($b);
|
|
}
|
|
|
|
@f();
|
|
ref(20);
|