xref: /PHP-5.5/Zend/tests/bug55825.phpt (revision 2e925f6f)
1--TEST--
2Bug #55825 (Missing initial value of static locals in trait methods)
3--FILE--
4<?php
5trait T1 {
6	public function inc() {
7		static $x=1;
8		echo $x++ . "\n";
9	}
10}
11class C { use T1; }
12$c1 = new C;
13$c1->inc();
14$c1->inc();
15--EXPECT--
161
172
18