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