Return to constants_error_002.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
php
--TEST-- Error case: class constant as an array --FILE-- <?php class myclass { const myConst = array(); } ?> --EXPECTF-- Fatal error: Arrays are not allowed in class constants in %s on line 4