]> granicus.if.org Git - php/commitdiff
Update
authorMarcus Boerger <helly@php.net>
Mon, 20 Oct 2003 10:26:03 +0000 (10:26 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 20 Oct 2003 10:26:03 +0000 (10:26 +0000)
Zend/ZEND_CHANGES

index 6a7b7c2fad83cc937bc368ee0889884acfeee055..898cad6e323ebb76cd6683432de3c04bdee25070 100644 (file)
@@ -492,16 +492,21 @@ Changes in the Zend Engine 2.0
         ShapeFactoryMethod('Square')->draw();
         ?>
 
-    * Static member variables of classes can now be initialized.
+    * Member variables of classes can now be initialized.
 
       Example:
 
         <?php
         class foo {
             static $my_static = 5;
+            public $my_prop = 'bla';
         }
 
         print foo::$my_static;
+        
+        $obj = foo;
+        
+        print $obj->my_prop;
         ?>
 
     * Static Methods.