Squirrel mail php error

prophecy

Verified User
Joined
Jul 8, 2003
Messages
205
I get this on each page while using squirrel

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
 
Hello,

I think you'll either need to upgrade php, or enable register_globals.

upgrade php:
Code:
cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
./build all
enable register_globals:
edit /usr/local/lib/php.ini
find the line that says:
register_globals = Off

and change it to

register_globals = On

or just run:
Code:
/usr/bin/perl -pi -e 's/^register_globals = Off/register_globals = On/' /usr/local/lib/php.ini
John
 
Should have mentioned, I'm running php 4.3.2 so that should be fine shouldn't it?
 
Ok, I confused 4.2.3 with 4.3.2 .. but try turning on register globals then and restart httpd
Code:
service httpd restart
John
 
Back
Top