xref: /PHP-5.4/tests/lang/static_basic_002.phpt (revision 775389cd)
1--TEST--
2Multiple declarations of the same static variable
3--FILE--
4<?php
5
6$a = 5;
7
8var_dump($a);
9
10static $a = 10;
11static $a = 11;
12
13var_dump($a);
14
15function foo() {
16	static $a = 13;
17	static $a = 14;
18
19	var_dump($a);
20}
21
22foo();
23
24?>
25--EXPECT--
26int(5)
27int(11)
28int(14)
29