ID: 20473
Comment by: frodelan at netcom dot no
Reported By: hofmann at isl dot org
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.3.0RC1
New Comment:
I have the same problem still, because of this I have to run php 4.2.2
and this made me sad! I've tried to run php 4.3.4 and I get the "Cannot
redeclare gc() in session.inc"-problem.
Is there anyone that will fix this problem?
Previous Comments:
------------------------------------------------------------------------
[2003-04-08 20:31:31] dave at toad dot net
The problem does not appear to be that php defines a gc() function that
phplib is clobbering, but that phplib's session.inc file actually tries
to define gc() twice.
I was able to eliminate the error message and problems by commenting
out the first gc() declaration in session.inc, as follows:
// Garbage collection
//
// Destroy all session data older than this
// COMMENTED THIS FUNCTION OUT DCT 4/8/03
/* function gc() {
$this->that->ac_gc($this->gc_time, $this->name);
} */
Would be interested in anyone's opinion as to whether this was terribly
foolish, or an accurate fix to the problem.
------------------------------------------------------------------------
[2003-02-10 16:29:42] edwin-php dot net at mavetju dot org
I found it to be an old line in my php.ini:
auto_prepend = /usr/local/apache/php/prepend.php3
Update your php.ini and you'll see it goes away again.
Edwin, bitten by this problem too :-)
------------------------------------------------------------------------
[2003-02-04 15:30:53] skerdog at hotmail dot com
SURELY someone knows how to fix this annoying error? It was first
reported over 2 months ago and there are no postings on this problem
report showing a resolution. Well?
------------------------------------------------------------------------
[2003-01-02 07:42:13] phpbugs at dewet dot org
This one also just hit me upgrading from 4.2.3 to 4.3.0 on
Gentoo Linux. Since I cannot seem to find a solution
online, I will try and rename the PHPLIB functions.
------------------------------------------------------------------------
[2002-12-06 21:56:44] craigm at ace dot com dot au
Has anybody got a solution for this problem. The same thing is
happening to some of our websites. Is there some setting in php.ini
file that can be set to get around this problem.
Thanks,
Craig Marchant
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20473
--
Edit this bug report at http://bugs.php.net/?id=20473&edit=1