xref: /PHP-5.4/Zend/tests/bug62358.phpt (revision 6d1bebfc)
1--TEST--
2Bug #62358 (Segfault when using traits a lot)
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") !== "0") {
6    die("skip Need Zend MM enabled");
7}
8?>
9--FILE--
10<?php
11
12trait T {
13    public function foo() {
14        echo "from T";
15    }
16}
17
18interface I {
19    public function foo();
20}
21
22abstract class A implements I{
23    use T;
24}
25
26class B extends A {
27   public function foo($var) {
28   }
29}
30?>
31--EXPECTF--
32Strict Standards: Declaration of B::foo() should be compatible with A::foo() in %sbug62358.php on line %d
33