summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-12-10 20:26:56 +0000
committerAndi Gutmans <andi@php.net>2000-12-10 20:26:56 +0000
commitec381d949e7555e6307e546a15df484c975a994b (patch)
tree6df81f4335a22bfb23fbebc84769abd7a10d4451
parenta9a1553031f3410348daf79d239d18fd0b895fc9 (diff)
downloadphp-git-ec381d949e7555e6307e546a15df484c975a994b.tar.gz
- Add NEWS about being able to assign new's by ref
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 378f8b07f4..bc3004dd26 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@ PHP 4.0 NEWS
- Empty entry. Enjoy
?? ??? 2000, Version 4.0.4
+- Allow assigning a newly created object by reference. This is needed only if
+ your constructor makes other data structures reference the $this object (for
+ example, $GLOBALS["foobar"] =& $this;)
+ The new syntax is $obj =& new MyClass(); (Andi, Zend Engine)
- Allow for three expression types to be sent to functions which are requesting
the function argument to be passed by reference (only c. was previously
supported):