#34789 [Opn]: userland naming guide
| From: | vrana@php.net | Date: | Thu, 13 Oct 2005 09:49:54 +0000 |
| Subject: | #34789 [Opn]: userland naming guide | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370574@lists.php.net to get a copy of this message | ||
ID: 34789
Updated by: vrana@php.net
Reported By: lsmith@php.net
Status: Open
Bug Type: Documentation problem
Operating System: irrlevant
PHP Version: Irrelevant
New Comment:
In language/oop.xml is already mentioned this:
"PHP reserves all function names starting with __ as magical. It is
recommended that you do not use function names with __ in PHP unless
you want some documented magic functionality."
Previous Comments:
------------------------------------------------------------------------
[2005-10-08 12:51:58] lsmith@php.net
Description:
------------
We need a guide that explains users how to name their userland
functions, classes, exceptions etc without conflicting with future
versions of php (or atleast keeping the risk low) ..
so we will state the obvious like that we usually prefix extension
stuff with the name of the extensions .. but also that we postfix
iterators and exceptions with "Iterator" and "Exception" ..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34789&edit=1