summaryrefslogtreecommitdiff
path: root/tests/lang/bug30862.phpt
blob: 12c95d57e87b748f1757ab3a2a7f843265e8c943 (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
28
29
30
--TEST--
Bug #30862 (Static array with boolean indexes)
--FILE--
<?php 
class T {
	static $a = array(false=>"false", true=>"true");
}
print_r(T::$a);
?>
----------
<?php
define("X",0);
define("Y",1);
class T2 {
	static $a = array(X=>"false", Y=>"true");
}
print_r(T2::$a);
?>
--EXPECT--
Array
(
    [0] => false
    [1] => true
)
----------
Array
(
    [0] => false
    [1] => true
)