diff options
Diffstat (limited to 'Zend/tests/errmsg_040.phpt')
-rw-r--r-- | Zend/tests/errmsg_040.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_040.phpt b/Zend/tests/errmsg_040.phpt new file mode 100644 index 0000000..f3d0afc --- /dev/null +++ b/Zend/tests/errmsg_040.phpt @@ -0,0 +1,13 @@ +--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 |