mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
16 lines
251 B
PHP
16 lines
251 B
PHP
--TEST--
|
|
Constexpr arrays should be able to handle resource keys
|
|
--FILE--
|
|
<?php
|
|
|
|
const FOO = [STDIN => 42];
|
|
var_dump(FOO);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
|
|
array(1) {
|
|
[%d]=>
|
|
int(42)
|
|
}
|