From: golden at riscom dot com
Operating system: freebsd 4.8
PHP version: 4.3.3
PHP Bug Type: Session related
Bug description: session_start(): Failed to initialize storage module

Description:
------------
After migrating web server platform from win2000 to freebsd periodicly
this message appears in logs:

PHP Fatal error: session_start(): Failed to initialize storage module. in
index.php on line 5
PHP Warning: Unknown(): A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0

I'm using now FreeBSD 4.8 and Apache 2.0.47


On the line 5 in index.php just a call session_start();

here's part of my config in php.ini:

session.auto_start Off
session.bug_compat_42 On
session.bug_compat_warn On
session.cache_expire 180
session.cache_limiter nocache
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_length 0
session.gc_divisor 100
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.save_handler files
session.save_path /tmp
session.serialize_handler php
session.use_cookies On
session.use_only_cookies Off
session.use_trans_sid On

Reproduce code:
---------------
<?php



session_start();
session_register("m");


Expected result:
----------------
not to see this message in logs, see the page expected

Actual result:
--------------
PHP Fatal error: session_start(): Failed to initialize storage module. in
index.php on line 5
PHP Warning: Unknown(): A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0


and we get just a blank page instead of seeing of what actually expected

--
Edit bug report at [url]http://bugs.php.net/?id=25876&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25876&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25876&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25876&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25876&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25876&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25876&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25876&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25876&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25876&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25876&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25876&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25876&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25876&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25876&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25876&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25876&r=float[/url]