nlopess Fri Sep 8 11:37:32 2006 UTC
Modified files: /phpdoc/en/appendices migration5.xml /phpdoc/en/language/oop5 basic.xml Log: close #34697: classes should be defined before use http://cvs.php.net/viewvc.cgi/phpdoc/en/appendices/migration5.xml?r1=1.49&r2=1.50&diff_format=u Index: phpdoc/en/appendices/migration5.xml diff -u phpdoc/en/appendices/migration5.xml:1.49 phpdoc/en/appendices/migration5.xml:1.50 --- phpdoc/en/appendices/migration5.xml:1.49 Wed Sep 6 19:39:01 2006 +++ phpdoc/en/appendices/migration5.xml Fri Sep 8 11:37:31 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.49 $ --> +<!-- $Revision: 1.50 $ --> <appendix id="migration5"> <title>Migrating from PHP 4 to PHP 5</title> @@ -95,7 +95,10 @@ </listitem> <listitem> <simpara> - You should always define your classes prior to use. + In some cases classes must be declared before use. It only happens if + some of the new features of PHP 5 (such as <link + linkend="language.oop5.interfaces">interfaces</link>) are used. + Otherwise the behaviour is the old. </simpara> </listitem> <listitem> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/basic.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc/en/language/oop5/basic.xml diff -u phpdoc/en/language/oop5/basic.xml:1.18 phpdoc/en/language/oop5/basic.xml:1.19 --- phpdoc/en/language/oop5/basic.xml:1.18 Wed Sep 6 11:57:23 2006 +++ phpdoc/en/language/oop5/basic.xml Fri Sep 8 11:37:31 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> +<!-- $Revision: 1.19 $ --> <sect1 id="language.oop5.basic"> <title>The Basics</title> @@ -131,7 +131,9 @@ assigned to a variable. An object will always be assigned when creating a new object unless the object has a <link linkend="language.oop5.decon">constructor</link> defined that throws an - <link linkend="language.exceptions">exception</link> on error. + <link linkend="language.exceptions">exception</link> on error. Classes + should be defined before instantiation (and in some cases this is a + requirement). </para> <example> <title>Creating an instance</title>