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