philip Sat Aug 14 01:59:20 2004 EDT
Modified files:
/phpdoc/en/language constants.xml
Log:
Mention how some values are case-sensitive in PHP 5. __FILE__ returns the filename
of the include, not the parent. And See Also.
http://cvs.php.net/diff.php/phpdoc/en/language/constants.xml?r1=1.38&r2=1.39&ty=u
Index: phpdoc/en/language/constants.xml
diff -u phpdoc/en/language/constants.xml:1.38 phpdoc/en/language/constants.xml:1.39
--- phpdoc/en/language/constants.xml:1.38 Mon May 24 16:13:57 2004
+++ phpdoc/en/language/constants.xml Sat Aug 14 01:59:20 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.38 $ -->
+<!-- $Revision: 1.39 $ -->
<chapter id="language.constants">
<title>Constants</title>
@@ -188,32 +188,44 @@
<row>
<entry><constant>__FILE__</constant></entry>
<entry>
- The full path and filename of the file.
+ The full path and filename of the file. If used inside an include,
+ the name of the included file is returned.
</entry>
</row>
<row>
<entry><constant>__FUNCTION__</constant></entry>
<entry>
- The function name. (This was added in PHP 4.3.0.)
+ The function name. (Added in PHP 4.3.0) As of PHP 5 this constant
+ returns the function name as it was declared (case-sensitive). In
+ PHP 4 its value is always lowercased.
</entry>
</row>
<row>
<entry><constant>__CLASS__</constant></entry>
<entry>
- The class name. (This was added in PHP 4.3.0.)
+ The class name. (Added in PHP 4.3.0) As of PHP 5 this constant
+ returns the class name as it was declared (case-sensitive). In PHP
+ 4 its value is always lowercased.
</entry>
</row>
<row>
<entry><constant>__METHOD__</constant></entry>
<entry>
- The class method name. (This was added in PHP 5.0.0)
+ The class method name. (Added in PHP 5.0.0) The method name is
+ returned as it was declared (case-sensitive).
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
-
+ <para>
+ See also
+ <function>get_class</function>,
+ <function>get_object_vars</function>,
+ <function>file_exists</function>&listendand;
+ <function>function_exists</function>.
+ </para>
</sect1>
</chapter>