mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
11 lines
309 B
PHP
11 lines
309 B
PHP
--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 by ReflectionFunctionAbstract::getClosure() in %s on line %d
|