mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
ee2a7c7d41
Added at the same time the possibility of array dereferencing to complete the set of features (useful application of arrays in constants)
12 lines
181 B
PHP
12 lines
181 B
PHP
--TEST--
|
|
059: Constant arrays
|
|
--FILE--
|
|
<?php
|
|
const C = array();
|
|
|
|
var_dump(C);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Arrays are not allowed in constants at run-time in %sns_059.php on line 4
|
|
|