note 69543 added to reserved

From: Date: Sat, 09 Sep 2006 14:50:57 +0000
Subject: note 69543 added to reserved
Groups: php.notes 
Request: Send a blank email to php-notes+get-116959@lists.php.net to get a copy of this message
its seems this also goes for class methods. atleast in php 4.3.10. i tried to create a class method with the name 'list' since this is a reserved word, i got an error. wich is strange as php already reserves the '__' prefix for magical methods suchs as '__sleep' and '__clone', i see no reason why these rules also should apply to private methods belonging to a class. the only way to call such methos is either initiate the class or use the '::' scope resolution. i gues it has something to do with the syntax engine. just my 2 euro cents. ---- Server IP: 83.137.20.120 Probable Submitter: 62.216.10.14 ---- Manual Page -- http://www.php.net/manual/en/reserved.php Edit -- https://master.php.net/note/edit/69543 Del: integrated -- https://master.php.net/note/delete/69543/integrated Del: useless -- https://master.php.net/note/delete/69543/useless Del: bad code -- https://master.php.net/note/delete/69543/bad+code Del: spam -- https://master.php.net/note/delete/69543/spam Del: non-english -- https://master.php.net/note/delete/69543/non-english Del: in docs -- https://master.php.net/note/delete/69543/in+docs Del: other reasons-- https://master.php.net/note/delete/69543 Reject -- https://master.php.net/note/reject/69543 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116959) next »