summaryrefslogtreecommitdiff
path: root/Zend/tests/argument_restriction_001.phpt
blob: 2c54636a581780649df7cb8313e57c0bf20bf7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
Class Base {
    public function &test($foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllllllllllllllllllllllllll") {
    }
}

class Sub extends Base {
    public function &test() {
    }
}
?>
--EXPECTF--
Fatal error: Declaration of & Sub::test() must be compatible with & Base::test($foo, array $bar, $option = null, $extra = 'llllllllll...') in %s on line %d