xref: /PHP-7.0/Zend/tests/bug60536_001.phpt (revision db76b708)
1--TEST--
2Bug #60536 (Traits Segfault)
3--FILE--
4<?php
5trait T { private $x = 0; }
6class X {
7	use T;
8}
9class Y extends X {
10	  use T;
11	  function __construct() {
12	      return ++$this->x;
13      }
14}
15class Z extends Y {
16	  function __construct() {
17		  return ++$this->x;
18      }
19}
20$a = new Z();
21$a->__construct();
22echo "DONE";
23?>
24--EXPECTF--
25
26Notice: Undefined property: Z::$x in %s on line 14
27DONE
28