1--TEST--
2Constexpr arrays should be able to handle resource keys
3--FILE--
4<?php
5
6const FOO = [STDIN => 42];
7var_dump(FOO);
8
9?>
10--EXPECTF--
11Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
12array(1) {
13  [%d]=>
14  int(42)
15}
16