Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Chung Leong
June 14, 2005, 2:53 pm
rate this thread
For years I have been telling people to avoid using references in PHP 4
unless it's absolutely necesssary. There is nothing specific I can put
my finger on, but I have observed in the past that frequent use of
references could lead to performance and stability issues. In short,
there's "something" not quite right with references in PHP 4.
The release of PHP 4.4.0RC1 proves my point:
"This release address a major problem within PHP concerning references.
If references where used in a wrong way, PHP would often create memory
corruptions which would not always surface and be visible. In other
cases it can cause variables and objects to change type or class. If
you encountered strange behavior like this, this release might fix it."
- R. Rajesh Jeba Anbiah
June 14, 2005, 4:25 pm