|
Posted by ZeldorBlat on 10/17/07 08:41
On Oct 16, 10:24 pm, "Steve" <no....@example.com> wrote:
>
> it could be the version of php you're using...newer versions don't like the
> depreciated use of referencing an argument...as in the &$in. the newer the
> version, the more flack php gives about it.
>
A function taking an argument by reference is /not/ deprecated. Call-
time pass by reference is, however.
This is perfectly acceptable and has valid uses:
function RLE_Uncompress(&$in, $insize, $bytemode) {
//do something
}
Passing a parameter by reference when you call the function is
deprecated, however:
$x = RLE_Uncompress(&$foo, $bar, $baz);
Navigation:
[Reply to this message]
|