From 966294f125767c79f3ba2c6b64bb05fdd6a6e157 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Sun, 15 Aug 2010 07:29:10 +0000 Subject: [PATCH] Fixed PHP bug #52499 (new keyword not fully documented) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302256 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index 39370b4128..99d9138b3b 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -174,6 +174,39 @@ object(SimpleClass)#1 (1) { ["var"]=> string(30) "$assigned will have this value" } +]]> + + + + PHP 5.3.0 introduced a couple of new ways to create instances of an + object: + + + Creating new objects + +getNew(); +$obj3 = new $obj2; + +var_dump($obj1 === $obj2, $obj2 === $obj3); +?> +]]> + + &example.outputs; + +