<?php
class a {}
function foo() {}
foreach (["substr", "foo"] as $fn) {
$x = (new ReflectionFunction($fn))->getClosure();
$x->call(new a);
Closure::bind($x, new a, "a");
}
?>
Warning: Cannot rebind scope of closure created from function in /in/oHW7B on line 8
Warning: Cannot rebind scope of closure created from function in /in/oHW7B on line 9
Warning: Cannot rebind scope of closure created from function in /in/oHW7B on line 8
Warning: Cannot rebind scope of closure created from function in /in/oHW7B on line 9
Warning: Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() in /in/oHW7B on line 8
Warning: Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() in /in/oHW7B on line 9
Warning: Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() in /in/oHW7B on line 8
Warning: Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() in /in/oHW7B on line 9