1--TEST-- 2Bug #70681: Segfault when binding $this of internal instance method to null 3--FILE-- 4<?php 5 6$c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); 7$c = $c->bindTo(null); 8 9$c = (new ReflectionFunction('strlen'))->getClosure(); 10$c = $c->bindTo(null); 11var_dump($c("foo")); 12 13?> 14--EXPECTF-- 15Warning: Cannot unbind $this of internal method in %s on line %d 16int(3) 17