summaryrefslogtreecommitdiff
path: root/Zend/tests/bug62358.phpt
blob: 62c6d88ad8720634f25c6620fc122f8acc5e3084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Bug #62358 (Segfault when using traits a lot)
--FILE--
<?php

trait T {
    public function foo() {
        echo "from T";
    }
}

interface I {
    public function foo();
}

abstract class A implements I{
    use T;
}

class B extends A {
   public function foo($var) {
   }
}
?>
--EXPECTF--
Fatal error: Declaration of B::foo($var) must be compatible with I::foo() in %sbug62358.php on line 17