Re: [phplib] Warning message in session.inc From: Nick Obukhov (NObukhov <email protected>)
Date: 04/26/01

> I ran into the same problem when trying to run PHP LIB at pair Networks.
I
> simply deleted all the '&' in front of the variables and everything
seems to
> work fine.
>
> Taking your example: &$str would turn into just $str

Of course, I did it at the first time, but phplib does not work good in
this case, I have not the warning message, but authentication does not
work :(

Is it possible to solve this problem changing session.inc (not php.ini)?

Regards,
Nick Obukhov

>
> > -----Original Message-----
> > From: Nick Obukhov [mailto:NObukhov <email protected>]
> > Sent: Wednesday, April 25, 2001 2:55 AM
> > To: phplib <email protected>
> > Subject: [phplib] Warning message in session.inc
> >
> >
> > Hello!
> >
> > I have a warning message:
> > 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/photoforumru/photoforum.ru/php/session.inc on line
262
> >
> > And the same messages on lines 273,304,305,311 in session.inc
> > I know that I can stop it if I set allow_call_time_pass_reference = On
in
> > PHP.INI, but I have not access to this file and can not change it
("this
> > method will not support by PHP later").
> >
> > Who can help me to change the code:
> > -------------------------
> > while ( "array" == $l ) {
> > ## Structural recursion
> > $this->serialize($prefix."['".ereg_replace("([\\'])",
"\\\\1",
> > $k)."']", &$str);
> > eval("\$l = gettype(list(\$k)=each(\$$prefix));");
> > }
> > -------------------------
> > so it would works good? If I change &$str to $str, the warning message
> > stoped, but session does not work properly.
> >
> > Regards,
> > Nick Obukhov
> >
> >
> > P.S. I'm trying to migrate from PHP3 to PHP4 and I'm using PHPLib
7.2c,
> > PHP 4.04
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> > For additional commands, e-mail: phplib-help <email protected>
> >
> >

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