Date: 10/02/00
- Next message: rasmus <email protected>: "[PHP-DOC] Write mistakes (fwd)"
- Previous message: Rasmus Lerdorf: "[PHP-DOC] cvs: phpdoc /en/chapters security.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: rasmus <email protected>: "[PHP-DOC] Write mistakes (fwd)"
- Previous message: Rasmus Lerdorf: "[PHP-DOC] cvs: phpdoc /en/chapters security.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

