xref: /PHP-5.6/Zend/tests/bug66015.phpt (revision ee2a7c7d)
1--TEST--
2Bug #66015 (wrong array indexing in class's static property)
3--FILE--
4<?php
5class Test
6{
7   const FIRST = 1;
8   const SECOND = 2;
9   const THIRD = 3;
10
11   protected static $array = [
12       self::FIRST => 'first',
13       'second',
14       'third'
15   ];
16
17   public function __construct()
18   {
19       var_export(self::$array);
20   }
21}
22
23$test = new Test();
24?>
25--EXPECTF--
26array (
27  1 => 'first',
28  2 => 'second',
29  3 => 'third',
30)
31