From: Alessandro P. (T. / J578) <al...@ti...> - 2002-02-01 22:17:57
|
This man didn't installed 0.8.1.1 right. I'm using CVS since mid january 2002, and it has THE SAME fixes 0.8.1.1 has (infact I backported them from CVS to 0.8.1.1) and I'm able to access ALL options of the admin panel. Just tell him to verify his install and do create false alarms: php 4.1.x compatibility issue is okay. Augh! alextxm spoke :> Alessandro On Fri, 2002-02-01 at 21:48, Matthew McNaney wrote: > Anyone else seeing this? > ---------------------------------------------- > Incompatibility 8.1.1 with PHP 4.1.1 > > There is incompatibility with 8.1.1 and PHP 4.1.1. When you log-in as > administrator and click on any link on page, you will be immeditely logged- > out. Therefore it is not possible to administer your website. > > Problem is in different work with global variables and sessions in PHP > 4.1.1. > > You have to find all presences of "global $admintest..." in non-function > scope and to comment it ("//global $admintest..."). > > Source of the problem is illustrated on this piece of code: > > session_start(); > global $counter; //when you remove this row, all will work properly > session_register("counter"); > $counter++; > echo $counter; > > On PHP 4.0.6 works both versions (with "global $counter;" and without it) > properly. > On PHP 4.1.1 works properly only version without "global $counter;". > -- Alessandro "TXM" Pisani - al...@ti... - ICQ #2209087 phpWebSite Development Team http://phpwebsite.appstate.edu INWO Project coordinator http://inwoproject.sourceforge.net "I will carry you through, hicking and screaming, and in the end you will thank me" - Tyler Durden [from "Fight Club"] |