1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--TEST-- Bug #70987 (static::class within Closure::call() causes segfault) --FILE-- <?php class foo {} $bar = function () { return static::class; }; var_dump($bar->call(new foo)); ?> --EXPECT-- string(3) "foo"