mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
22 lines
410 B
PHP
22 lines
410 B
PHP
--TEST--
|
|
Bug #39127 (Old-style constructor fallbacks produce strange results)
|
|
--FILE--
|
|
<?php
|
|
|
|
class a { function a() { var_dump("a::a() called"); } }
|
|
class b extends a {}
|
|
|
|
$b = new b;
|
|
var_dump(is_callable(array($b,"a")));
|
|
var_dump(is_callable(array($b,"b")));
|
|
var_dump(is_callable(array($b,"__construct")));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
string(13) "a::a() called"
|
|
bool(true)
|
|
bool(false)
|
|
bool(false)
|
|
Done
|