From e8db6b20fd258a0a62fe4eb2604005a2d12b4d0a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 16 Nov 2009 12:06:45 +0000 Subject: [PATCH] Remove PHP 4 only note (bug #49147) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290810 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/references.xml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/language/references.xml b/language/references.xml index 319c084b31..cde144fa08 100644 --- a/language/references.xml +++ b/language/references.xml @@ -91,13 +91,12 @@ var_dump(property_exists($c, 'd')); // bool(true) The same syntax can be used with functions that return - references, and with the new operator (in PHP - 4.0.4 and later): + references, and with the new operator (since PHP + 4.0.4 and before PHP 5.0.0): ]]> @@ -108,27 +107,6 @@ $foo =& find_var($bar); using =& in this context is deprecated and produces an E_STRICT message. - - - Not using the & operator causes a copy of - the object to be made. If you use $this in - the class it will operate on the current instance of the - class. The assignment without - & will copy the instance (i.e. the object) and - $this will operate on the copy, which is not - always 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 parse error. - - If you assign a reference to a variable declared global