Calling non-static methods statically (bug #34095)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194640 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-08-30 15:08:38 +00:00
parent 9e730ae22d
commit f29b6cbdee

View file

@ -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">