For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2005 > cvs: phpdoc /en/language/oop5 static.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/language/oop5 static.xml
Jakub Vrana

2005-08-30, 6:56 pm

vrana Tue Aug 30 11:08:38 2005 EDT

Modified files:
/phpdoc/en/language/oop5 static.xml
Log:
Calling non-static methods statically (bug #34095)

http://cvs.php.net/diff.php/phpdoc/...1.7&r2=1.8&ty=u
Index: phpdoc/en/language/oop5/static.xml
diff -u phpdoc/en/language/oop5/static.xml:1.7 phpdoc/en/language/oop5/static.xml:1.8
--- phpdoc/en/language/oop5/static.xml:1.7 Tue Jul 19 14:50:58 2005
+++ phpdoc/en/language/oop5/static.xml Tue Aug 30 11:08:38 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<sect1 id="language.oop5.static">
<title>Static Keyword</title>

@@ -16,7 +16,7 @@
compatibility with PHP 4, if no <link
linkend="language.oop5.visibility">visibility</link>
declaration is used, then the member or method will be treated
- as if it was declared as <literal>public static</literal>.
+ as if it was declared as <literal>public</literal>.
</para>

<para>
@@ -39,6 +39,10 @@
operator -&gt;.
</para>

+ <para>
+ Calling non-static methods statically generates an E_STRICT level warning.
+ </para>
+
<example>
<title>Static member example</title>
<programlisting role="php">
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com