mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +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)
|
|
}
|