summaryrefslogtreecommitdiff
path: root/Zend/tests/bug60536_001.phpt
blob: 37a5a6d8138d36e095eceab88e0cf9e9262e1d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--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