summaryrefslogtreecommitdiff
path: root/Zend/tests/bug66015.phpt
blob: 5e0815240d3d05841450d50807885a594dddd554 (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
31
32
33
34
35
--TEST--
Bug #66015 (wrong array indexing in class's static property)
--FILE--
<?php
class Test
{
   const FIRST = 1;
   const SECOND = 2;
   const THIRD = 3;

   protected static $array = [
       self::FIRST => 'first',
       'second',
       'third',
       4,
   ];

   public function __construct()
   {
       var_export(self::$array);
   }
}

$test = new Test();
?>

===DONE===
--EXPECT--
array (
  1 => 'first',
  2 => 'second',
  3 => 'third',
  4 => 4,
)
===DONE===