Return to bug21849.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
php
--TEST-- Bug #21849 (self::constant doesn't work as method's default parameter) --FILE-- <?php class foo { const bar = "fubar\n"; function foo($arg = self::bar) { echo $arg; } } new foo(); ?> --EXPECT-- fubar