summaryrefslogtreecommitdiff
path: root/Zend/tests/bug66015.phpt
blob: 41521455e8f95e1d663b97d554253e6418f4c384 (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
--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();
?>
--EXPECT--
array (
  1 => 'first',
  2 => 'second',
  3 => 'third',
  4 => 4,
)