xref: /PHP-7.2/Zend/tests/errmsg_040.phpt (revision 17ccbeec)
1--TEST--
2errmsg: arrays are not allowed in class constants
3--FILE--
4<?php
5
6class test {
7	const TEST = array(1,2,3);
8}
9var_dump(test::TEST);
10echo "Done\n";
11?>
12--EXPECTF--
13array(3) {
14  [0]=>
15  int(1)
16  [1]=>
17  int(2)
18  [2]=>
19  int(3)
20}
21Done
22