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