mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
21 lines
356 B
Plaintext
21 lines
356 B
Plaintext
|
--TEST--
|
||
|
Different numbers of arguments in __construct()
|
||
|
--FILE--
|
||
|
<?php
|
||
|
interface foobar {
|
||
|
function __construct();
|
||
|
}
|
||
|
abstract class bar implements foobar {
|
||
|
public function __construct($x = 1) {
|
||
|
}
|
||
|
}
|
||
|
final class foo extends bar implements foobar {
|
||
|
public function __construct($x = 1, $y = 2) {
|
||
|
}
|
||
|
}
|
||
|
new foo;
|
||
|
print "ok!";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
ok!
|