1--TEST-- 2Bug #75220 (is_callable crash for 'parent') 3--FILE-- 4<?php 5 6$a = new A(); 7$a->bar('foo'); 8 9class B {}; 10class A extends B 11{ 12 function bar($func) 13 { 14 var_dump('foo'); 15 var_dump(is_callable('parent::foo')); 16 var_dump(is_callable(array('parent', 'foo'))); 17 } 18 19 function __call($func, $args) 20 { 21 } 22}; 23 24?> 25--EXPECTF-- 26string(3) "foo" 27 28Deprecated: Use of "parent" in callables is deprecated in %s on line %d 29bool(false) 30 31Deprecated: Use of "parent" in callables is deprecated in %s on line %d 32bool(false) 33