[phplib] session, pass by reference and php 4.0.2 From: Mark Heintz PHP Mailing Lists (heintzphp <email protected>)
Date: 08/30/00

I upgraded from php 4.0.1pl2 to 4.0.2 today, and started to get the
following error with sites utilizing phplib's session class:

Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the
declaration of [runtime function name](). If you would like to enable
call-time pass-by-reference, you can set allow_call_time_pass_reference to
true in your INI file. However, future versions may not support this any
longer. in /home/sites/ ... /session.inc on line 304

The line in question is a call to session.inc's serialize function (from
within the freeze function) where an argument is passed by reference:
    $this->serialize("this->in",&$str);
Serialize handles that argument by reference in both phplib 7.2b and 7.2c.

Setting allow_call_time_pass_reference in my php.ini allows session to
function as expected, so everything is working OK. My question is has
anybody else encountered this, or did I screw up somewhere? My
configuration was identical to that of my earlier php4 installs, and
allow_call_time_pass_reference had been off. Did something in php4.0.2
change to cause it to start enforcing the deprication (I checked the
changelog but didn't see anything obvious)? Will future versions of
phplib eliminate call-time passes-by-reference?

Thanks,
mh.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>