mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
14 lines
221 B
PHP
14 lines
221 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
|