[PHP-DOC] cvs: phpdoc /en/language oop.xml From: Stanislav Malyshev (stas <email protected>)
Date: 10/02/00

stas Mon Oct 2 02:37:54 2000 EDT

  Modified files:
    /phpdoc/en/language oop.xml
  Log:
  Insert warning about constant class initializers
  
  
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.4 phpdoc/en/language/oop.xml:1.5
--- phpdoc/en/language/oop.xml:1.4 Mon Mar 20 02:36:17 2000
+++ phpdoc/en/language/oop.xml Mon Oct 2 02:37:53 2000
@@ -40,6 +40,10 @@
     array of articles in the cart and two functions to add and remove
     items from this cart.
    </para>
+ <note><simpara>
+ In PHP 4, only constant initializers for <literal>var</literal>
+ variables are allowed. Use constructors for non-constant initializers.
+ </simpara></note>
    <para>
     Classes are types, that is, they are blueprints for actual
     variables. You have to create a variable of the desired type with