summaryrefslogtreecommitdiff
path: root/Zend/tests/constructor_args.phpt
blob: 8056874286a8cdff68dfc45e6aa7c7923fac5f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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!