Return to constants_error_007.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
Initial revision
--TEST-- Basic class support - attempting to create a reference to a class constant --FILE-- <?php class aclass { const myConst = "hello"; } echo "\nAttempting to create a reference to a class constant - should be parse error.\n"; $a = &aclass::myConst; ?> --EXPECTF-- Parse error: %s in %s on line %d