note 69543 deleted from reserved by betz

From: Date: Sun, 10 Sep 2006 10:08:15 +0000
Subject: note 69543 deleted from reserved by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116976@lists.php.net to get a copy of this message
Note Submitter: docey Reason: in docs ---- 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.

« previous php.notes (#116976) next »