1--TEST-- 2Property access within closure 3--FILE-- 4<?php 5 6class A { 7 public $prop { 8 get { 9 return function () { 10 return $this->prop; 11 }; 12 } 13 } 14} 15 16$a = new A(); 17$c = $a->prop; 18var_dump(get_class($c)); 19$d = $c(); 20var_dump(get_class($d)); 21 22?> 23--EXPECT-- 24string(7) "Closure" 25string(7) "Closure" 26