1--TEST-- 2Bug #65911 (scope resolution operator - strange behavior with $this) 3--FILE-- 4<?php 5class A {} 6 7class B 8{ 9 public function go() 10 { 11 $this->foo = 'bar'; 12 echo A::$this->foo; // should not output 'bar' 13 } 14} 15 16$obj = new B(); 17$obj->go(); 18?> 19--EXPECTF-- 20Fatal error: Uncaught Error: Access to undeclared static property A::$this in %s:%d 21Stack trace: 22#0 %s(%d): B->go() 23#1 {main} 24 thrown in %s on line %d 25