1--TEST-- 2Bug #39127 (Old-style constructor fallbacks produce strange results) 3--FILE-- 4<?php 5 6class a { function a() { var_dump("a::a() called"); } } 7class b extends a {} 8 9$b = new b; 10var_dump(is_callable(array($b,"a"))); 11var_dump(is_callable(array($b,"b"))); 12var_dump(is_callable(array($b,"__construct"))); 13 14echo "Done\n"; 15?> 16--EXPECTF-- 17string(13) "a::a() called" 18bool(true) 19bool(false) 20bool(false) 21Done 22