mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
d5ddd2dbb2
For the discussion around it, see the thread on the mailing list: http://www.mail-archive.com/internals@lists.php.net/msg68245.html
24 lines
242 B
PHP
24 lines
242 B
PHP
--TEST--
|
|
errmsg: arrays are not allowed in class constants
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
const TEST = array(1,2,3);
|
|
}
|
|
|
|
var_dump(test::TEST);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
array(3) {
|
|
[0]=>
|
|
int(1)
|
|
[1]=>
|
|
int(2)
|
|
[2]=>
|
|
int(3)
|
|
}
|
|
Done
|