php-src/Zend/tests/bug60536_001.phpt
2015-03-31 17:55:27 +02:00

28 lines
394 B
PHP

--TEST--
Bug #60536 (Traits Segfault)
--FILE--
<?php
trait T { private $x = 0; }
class X {
use T;
}
class Y extends X {
use T;
function __construct() {
return ++$this->x;
}
}
class Z extends Y {
function __construct() {
return ++$this->x;
}
}
$a = new Z();
$a->__construct();
echo "DONE";
?>
--EXPECTF--
Notice: Undefined property: Z::$x in %s on line 14
DONE