PHP 4.4.1 bug

MrC

Joined: 2004-04-20
Posts: 12
Posted: Tue, 2005-12-06 01:21

Was Subject: PHP Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time.

I'm seeing the following errors on my gallery after updating from PHP 4.3.11 to 4.4.1:

PHP Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0, referer: ...

All was working fine before the PHP update. I've seen a number of referencs via google, but nothing helpful.

Anyone know how to fix?

Thanks,
mrc

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.1
Apache version: 2.0.52
PHP version (don't just say PHP 4, please): 4.4.1
Graphics Toolkit: ImageMagick
Operating system: Linux, RH9 +
Web browser/version (if applicable):

Login or register to post comments
MrC

Joined: 2004-04-20
Posts: 12
Posted: Sun, 2005-12-11 16:58

Is anyone using PHP 4.4.1 successfully with Gallery 1.5.1 ?

Login or register to post comments
MrC

Joined: 2004-04-20
Posts: 12
Posted: Fri, 2005-12-16 16:28

I've found the cause for the problem(s) I mentioned here - it is due to a bug in PHP 4.4.1. Using PHP 4.4.1 unpatched will result in gallery hangs, and misleading error messages in the web log.

The fix is to use either the latest stable snapshot version of php, or patch 4.4.1.

Latest PHP: http://snaps.php.net/
Patch: http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.543.2.51.2.3&r2=1.543.2.51.2.4&ty=u
Bug: http://bugs.php.net/bug.php?id=35067

Login or register to post comments