bug70630.phpt 279 B

12345678910
  1. --TEST--
  2. Bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())
  3. --FILE--
  4. <?php
  5. class a {}
  6. $x = (new ReflectionFunction("substr"))->getClosure();
  7. $x->call(new a);
  8. ?>
  9. --EXPECTF--
  10. Warning: Cannot rebind scope of closure created from function in %s on line %d