--TEST-- Edge cases in compile-time method argument binding --FILE-- method($x); var_dump($x); } } class C extends B { public function method(&$x) { ++$x; } } (new C)->test(); class D { private function method(&$x) { ++$x; } } class E extends D { public function __call($name, $args) { } public function test() { $this->method($x); } } (new E)->test(); ?> --EXPECTF-- int(2) Warning: Undefined variable $x in %s on line %d