Bugs item #450648, was opened at 2001-08-13 16:15
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=403611&aid=450648&group_id=31885
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Richard Archer (richardarcher)
Assigned to: Richard Archer (richardarcher)
Summary: Warning: Call-time pass-by-reference
Initial Comment:
Repost of a "bug" posted to NetUSE bugs forum.
This one will take a little investigating.
--
Warning: Call-time pass-by-reference has been depr [66]
by Roxy web...@ya... on Thursday, July 12 @12:31AM
Are there any plans to update PHPLIB to be compatible
with PHP4.04? It is the defacto library, however beyond
PHP 4 it gets a little hairy.
----------------------------------------------------------------------
>Comment By: Richard Archer (richardarcher)
Date: 2001-08-25 21:56
Message:
Logged In: YES
user_id=279311
Fixed it again :)
----------------------------------------------------------------------
Comment By: Richard Archer (richardarcher)
Date: 2001-08-20 18:19
Message:
Logged In: YES
user_id=279311
Re-opening this bug. Looks like all the calls to serialize
have to have the ampersands removed from the $str arg.
To test this problem, put this in a .htaccess file:
php_value allow_call_time_pass_reference off
----------------------------------------------------------------------
Comment By: Richard Archer (richardarcher)
Date: 2001-08-18 01:30
Message:
Logged In: YES
user_id=279311
Fixed in my working copy and will be committed soon.
----------------------------------------------------------------------
Comment By: Richard Archer (richardarcher)
Date: 2001-08-13 18:27
Message:
Logged In: YES
user_id=279311
In the -devel tree, unsup/phplib-4/(session4.inc|user4.inc)
have the same problem.
Isn't this whole directory (unsup/phplib-4) obsolete?
Isn't Maxim's session4.inc "the one".
----------------------------------------------------------------------
Comment By: Richard Archer (richardarcher)
Date: 2001-08-13 17:46
Message:
Logged In: YES
user_id=279311
The API description of session.inc/Session->serialize() reads:
serialize($prefix, &$str)
but the function is declared:
function serialize($prefix, $str) {
All calls I can find to this function pass the variable by
reference, so there shouldn't be any problems changing the
function declaration to ...&$str.
This is how it is in the -devel tree.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=403611&aid=450648&group_id=31885
|