1--TEST-- 2call_user_func() on non-static closure without $this inside a static method 3--FILE-- 4<?php 5 6class A { 7 public static function exec(callable $c) { 8 return call_user_func($c); 9 } 10 11 public static function doSomething() { 12 return self::exec(function(){ 13 return "okay"; 14 }); 15 } 16} 17 18var_dump(A::doSomething()); 19 20?> 21--EXPECT-- 22string(4) "okay" 23