ID: 38460 Updated by: [EMAIL PROTECTED] Reported By: ddk at krasn dot ru -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Irrelevant PHP Version: 5.1.4 New Comment:
list() is a language construct. http://php.net/list Previous Comments: ------------------------------------------------------------------------ [2006-08-15 06:29:36] ddk at krasn dot ru Description: ------------ Declaring 'list' method in class leads to parse error. Reproduce code: --------------- <?php class foo { function list() { echo "I'm list function!\n"; } } $o = new foo; $o->list(); ?> Expected result: ---------------- I'm list function! Actual result: -------------- Parse error: parse error, unexpected T_LIST, expecting T_STRING in list.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38460&edit=1
