File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug62907.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
Bug #62907 (Double free when use traits)
--FILE--
<?php
function __autoload($name) {
    if ($name == "B") {
        eval ("abstract class B extends A { }");
    } else if ($name == "A") {
        eval ("abstract class A { use T { T::__construct as __asconstruct; }}"); 
    } else if ($name == "T") {
        eval ("trait T { public function __construct() { } }"); 
    } 
    return TRUE;
} 

class C extends B {
    public function __construct() {
    }
}
echo "okey";
--EXPECT--
okey

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