#38460 [Opn->Bgs]: Unable to declare 'list' method
| From: | tony2001@php.net | Date: | Tue, 15 Aug 2006 06:52:17 +0000 |
| Subject: | #38460 [Opn->Bgs]: Unable to declare 'list' method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100813@lists.php.net to get a copy of this message | ||
ID: 38460
Updated by: tony2001@php.net
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