php-src/Zend/tests/errmsg_040.phpt
2018-10-14 12:07:20 -03:00

22 lines
238 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