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