From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.2.2
PHP Bug Type:     Documentation problem
Bug description:  Explanation of "magic constants" not included in documentation

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 bug report at http://bugs.php.net/?id=19196&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19196&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19196&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19196&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19196&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19196&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19196&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19196&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19196&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19196&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19196&r=globals


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to