Date: 09/16/02
- Next message: Jeanne Hunter: "[PHP-DOC] Request for documentation"
- Previous message: Friedhelm Betz: "[PHP-DOC] ini.xml and structure of manual"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 19196
Updated by: philip <email protected>
Reported By: kmartin <email protected>
Status: Open
Bug Type: Documentation problem
-PHP Version: 4.2.2
+PHP Version: 4.3.0
New Comment:
On a related note, the new __CLASS__ and __FUNCTION__ constants should
be documented with these too. These four magical "constants" are also
listed here:
http://www.php.net/manual/en/reserved.php
(__CLASS__ and __FUNCTION__ were added in 4.3.0)
Previous Comments:
------------------------------------------------------------------------
[2002-08-30 07:58:55] kmartin <email protected>
This bug report has little to do with the implementation of PHP itself.
This is about the documentation for the language.
I was having a very hard time finding information about the so-called
"magic constants", namely __FILE__ and __LINE__.
Apparently, the use of these constants is very common. The problem
is, throughout the entire PHP.net web site, there is only one reference
made to these "magic constants", and their mention is not very
informative at all. See this page:
http://www.php.net/manual/en/language.constants.php
The only other references to "__FILE__" I could find, using Google
on the PHP.net site, were in user comments, and they were only used in
examples, so there was no clear definition of the use of these
constants.
After searching the web for any sort of definition for the magic
constants, I finally found one at this page:
http://www.sunsite.ualberta.ca/Documentation/Misc/php-3.0.15/language.constants.html
In any case, the reason I was writing is because I just thought it
would be a good idea to include a definition of this sort somewhere in
the online documentation of PHP. If it is included somewhere that I
haven't looked or wasn't able to find, then I apologize for the
intrusion.
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=19196&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Jeanne Hunter: "[PHP-DOC] Request for documentation"
- Previous message: Friedhelm Betz: "[PHP-DOC] ini.xml and structure of manual"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

