Thread: [Phplib-users] no phplib-users archives on SF
Brought to you by:
nhruby,
richardarcher
From: giancarlo p. <gia...@na...> - 2001-08-20 21:14:21
|
There is no archive on Sourceforge for the new list phplib-users. Gian |
From: Bob B. <bo...@iN...> - 2001-08-20 23:24:49
|
Hi -- We have phpLib 7.2c (amended) or 7.2d running on several servers with everything from PHP 3.12 through the latest 4.x ... On a new setup with PHP 4.0.3pl1 (to be upgraded soon, I'm working on that!), I'm getting the following error, which I've never seen before, and I can't track down successfully so far ... any suggestions or help will be appreciated. Thanks -- Bob. 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/site19/php/session.inc on line 262 |
From: Richard A. <rh...@ju...> - 2001-08-20 23:48:19
|
At 4:24 PM -0700 20/8/01, Bob Bowker wrote: >Warning: Call-time pass-by-reference has been deprecated This has been fixed in the CVS tree. The change is to add a '&' to the function declaration of serialize in session.inc: change function serialize($prefix, $str) { to function serialize($prefix, &$str) { ...R. |
From: Bob B. <bo...@iN...> - 2001-08-20 23:58:26
|
Richard -- Tried that, no joy: the error I quoted is still reported in 5 places ... using session.inc v 1.5 2000/07/12 18:22:35. Does the pass-by-reference need to be changed anywhere else ...? Thanks -- Bob. At 09:48 AM 8/21/01 +1000, Richard Archer wrote: >At 4:24 PM -0700 20/8/01, Bob Bowker wrote: > > >Warning: Call-time pass-by-reference has been deprecated > >This has been fixed in the CVS tree. The change is to add a '&' to >the function declaration of serialize in session.inc: > >change > function serialize($prefix, $str) { >to > function serialize($prefix, &$str) { > > ...R. > >_______________________________________________ >Phplib-users mailing list >Php...@li... >http://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Bob B. <bo...@iN...> - 2001-08-21 00:14:26
|
Hi -- I just grabbed session.inc from the CVS and using that ver 1.10, the same 5 errors come up, just in different line numbers ...?!? Bob. At 09:48 AM 8/21/01 +1000, you wrote: >At 4:24 PM -0700 20/8/01, Bob Bowker wrote: > > >Warning: Call-time pass-by-reference has been deprecated > >This has been fixed in the CVS tree. The change is to add a '&' to >the function declaration of serialize in session.inc: > >change > function serialize($prefix, $str) { >to > function serialize($prefix, &$str) { > > ...R. > >_______________________________________________ >Phplib-users mailing list >Php...@li... >http://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Bob B. <bo...@iN...> - 2001-08-21 00:56:52
|
Hi -- My dummy ... I ran phpinfo() and discovered that this particular install had allow_call_time_pass_reference set to OFF by default. Changed that to "1" in .htaccess, and all's well ... Sorry for the false alarm ... Bob. At 09:48 AM 8/21/01 +1000, you wrote: >At 4:24 PM -0700 20/8/01, Bob Bowker wrote: > > >Warning: Call-time pass-by-reference has been deprecated > >This has been fixed in the CVS tree. The change is to add a '&' to >the function declaration of serialize in session.inc: > >change > function serialize($prefix, $str) { >to > function serialize($prefix, &$str) { > > ...R. > >_______________________________________________ >Phplib-users mailing list >Php...@li... >http://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Richard A. <rh...@ju...> - 2001-08-21 02:45:17
|
At 5:56 PM -0700 20/8/01, Bob Bowker wrote: >My dummy ... I ran phpinfo() and discovered that this particular install >had allow_call_time_pass_reference set to OFF by default. Changed that to >"1" in .htaccess, and all's well ... Aah I see, I thought this bug was a bit easy to fix :) Looks like all the calls to serialize have to have the ampersands removed from the str arg. I'll repost this bug to the SF tracker and sort it out next time I'm working on session.inc. The code should still run cleanly even with allow_call_time_pass_reference turned off. ...R. |