Re: [Phplib-users] prepend.php3 errors in phplib 7.2d
Brought to you by:
nhruby,
richardarcher
From: Chris J. <ch...@ch...> - 2003-01-02 20:40:30
|
On Thu, Jan 02, 2003 at 03:13:43AM +1000, Geoff Mills wrote: > Hi Folks > > I have just wasted FIVE DAYS OF MY LIFE...and thought 'What the Hell....I'd might as well try to waste yours' :) > > My PHP 4.2.3 (mod_php with Apache 1.3.19) was running fine with MySQL 3.23.35, Horde/IMP, PHPop and an older version of phplib, until I required to have ftp enabled on PHP. This required a 'chain of events' that led to an upgrade of PHP to 4.3.0 and an upgrade of phplib to 7.2d and ever since then, everything has been falling apart... > 4. If I leave the <auto_prepend_file = "/usr/local/httpd/htdocs/php/prepend.php3"> line IN my php.ini file, after I restart Apache, all I get on EVERY PHP FILE is... > <Fatal error: Cannot redeclare gc() in /usr/local/httpd/htdocs/php/session.inc on line 464> > QUESTION :: What the hell is wrong with phplib 7.2d and is there any suggestions as to how I can get it working with PHP 4.3.0 - or can anyone see anything wrong with the syntax, etc of my configs and .inc files? > > Hope someone can help, thanks everyone. > > Geoff Geoff, Sorry to hear you are having such a difficult time. I won't swear what I'm about to write will fix your problem, but I highly recommend following the suggestion anyway. PHPLIB 7.2d is _very_ old by now. I know for a fact that many bugs have been fixed since then, especially in session.inc. I would suggest downloading to a clean, empty directory the PHPLIB 7.4-pre1 release from https://sourceforge.net/projects/phplib/. I have been using this release on several production servers for a year without problems. I suggest the empty directory approach to make sure you aren't getting mixed files. It almost sounds like you are including 2 different versions of session.inc (maybe one named session.php3?) and causing gc() to be redeclared. Good luck. -- ..chris |