Fix PHP testsuite check::get() helper

This was trying to return a reference, but that doesn't actually work
for all the things it's used for, and none of the uses require the
return value to be a reference.
This commit is contained in:
Olly Betts 2019-02-09 11:45:57 +13:00
commit 785481cc62

View file

@ -105,7 +105,7 @@ class check {
else $_GLOBALS[$var]=$value;
}
static function &get($var) {
static function get($var) {
$func=$var."_get";
if (self::GETSET) return $func();
else return $_GLOBALS[$var];