[horde] php-4.4.0 woes

Chuck Hagenbuch chuck at horde.org
Mon Jul 18 07:16:34 PDT 2005


Quoting Joeri Pronk <joeri at joeri.nu>:

> Most of the problems are with using a & before a function call:
> $ref = &this_function_returns_a_reference();
>
> Only thing that needs to be done is to remove the & before the function
> call. The function is defined as to return a reference, in this case
> older PHP versions would try to reference the reference which could
> cause the memory corruption.

Unfortunately this is very, very wrong. Folks, DO NOT go around 
modifying your code in this way; it _will_ break things.

Joeri, please be careful about making statements like this. This simply 
isn't how references work in php4.

> I wonder if anybody on the horde project is already looking into 
> this, or should I post a bug report on this?

There are already 3-4 duplicate bug reports. Feel free to add notices 
that aren't already fixed, but please make COMPLETELY sure you're using 
the very latest CVS to test and that you're not duplicating existing 
reports.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the horde mailing list