mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
22 lines
241 B
PHP
22 lines
241 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";
|
|
?>
|
|
--EXPECT--
|
|
array(3) {
|
|
[0]=>
|
|
int(1)
|
|
[1]=>
|
|
int(2)
|
|
[2]=>
|
|
int(3)
|
|
}
|
|
Done
|