diff --git a/language/oop.xml b/language/oop.xml index 2bfb9cbe9a..95be94372b 100644 --- a/language/oop.xml +++ b/language/oop.xml @@ -1,5 +1,5 @@ - + Classes and Objects @@ -344,6 +344,12 @@ $different_cart = new Constructor_Cart("20", 17); + + You also can use the @ operator to + mute errors occuring in the constructor, e.g. + @new. + + In PHP 3, derived classes and constructors have a number of diff --git a/language/references.xml b/language/references.xml index 54eb30a36b..d42e8631a3 100644 --- a/language/references.xml +++ b/language/references.xml @@ -1,5 +1,5 @@ - + References Explained @@ -63,6 +63,13 @@ $foo =& find_var ($bar); what is desired. Usually you want to have a single instance to work with, due to performance and memory consumption issues. + + While you can use the @ operator to + mute any errors in the constructor when using it as + @new, this does not work when using the + &new statement. This is a limitation of the Zend + Engine and will therefore result in a parser error. + The second thing references do is to pass variables