Annotation of embedaddon/php/Zend/tests/bug62907.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #62907 (Double free when use traits)
                      3: --FILE--
                      4: <?php
                      5: function __autoload($name) {
                      6:     if ($name == "B") {
                      7:         eval ("abstract class B extends A { }");
                      8:     } else if ($name == "A") {
                      9:         eval ("abstract class A { use T { T::__construct as __asconstruct; }}"); 
                     10:     } else if ($name == "T") {
                     11:         eval ("trait T { public function __construct() { } }"); 
                     12:     } 
                     13:     return TRUE;
                     14: } 
                     15: 
                     16: class C extends B {
                     17:     public function __construct() {
                     18:     }
                     19: }
                     20: echo "okey";
                     21: --EXPECT--
                     22: okey

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>