--TEST-- Bug #31683 (changes to $name in __get($name) override future parameters) --FILE-- ok("ok"); $foo->ok; $foo->ok = "ok"; $x = $foo["ok"]; $foo["ok"] = "ok"; isset($foo["ok"]); unset($foo["ok"]); // $foo[]; $foo[] = "ok"; // isset($foo[]); // unset($foo[]); $foo->$a; echo "---\n"; } ?> --EXPECT-- string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" NULL string(2) "ok" string(2) "ok" --- string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" string(2) "ok" NULL string(2) "ok" string(2) "ok" ---