/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug70685.phpt
--TEST-- Bug #70685: Segfault for getClosure() internal method rebind with invalid $this --FILE-- <?php class cls {} $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); $c = $c->bindTo(new cls); var_dump($c); $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); $c = $c->bindTo(new SplStack, 'cls'); var_dump($c); ?> --EXPECTF-- Warning: Cannot bind method SplDoublyLinkedList::count() to object of class cls in %s on line %d NULL Warning: Cannot rebind scope of closure created from method in %s on line %d NULL
Copyright ©2k19 -
Hexid
|
Tex7ure