Problem with references after update

RosT

Verified User
Joined
Jul 4, 2004
Messages
73
I'm update to Apache/2.0.55 and PHP/4.4.0 on FreeBSD 4.11

Some php-scripts don't work with error:

Notice:
Only variables should be assigned by reference
[/home/hfzinew/domains/fei.org.ua/public_html/lib/tools.lib.php:60]

Line 60 of code:
$aArea = &$gSid->fetch(__CFG_SESSION_AREA);

What to do?
 
read php changelog see if code has been made obselete, if yes fix the code. Or it could be just a setting you need to change in php.ini to enable some compatiblity.
 
this is due to php 4.4.0 and an issue
with references, much documented
elsewhere.

try changing that line to:

$aArea = $gSid->fetch(__CFG_SESSION_AREA);

see if that fixes. going from 4.3.11 to
4.4.0 has led to many php scripts having
this issue.
 
Back
Top