mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
14 lines
222 B
PHP
14 lines
222 B
PHP
--TEST--
|
|
errmsg: arrays are not allowed in class constants
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
const TEST = array(1,2,3);
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Arrays are not allowed in class constants in %s on line %d
|