From: vincent_f40 at hotmail dot com Operating system: Linux RHEL4, 2.6.9-11.ELsmp PHP version: 5.0.5 PHP Bug Type: Session related Bug description: Sometimes the log file shows: The session id contains illegal characters, ..etc
Description: ------------ [Thu Nov 3 00:49:10 2005] [error] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /home/httpd/html/includes/session_init.inc on line 70 [Thu Nov 3 00:49:11 2005] [error] PHP Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 [Thu Nov 3 00:49:11 2005] [error] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 1) Cant reproduce the errors. As the site works fine, only sometimes the above error appears in the log files. 2) session_write_close() is being used. 3) session_name() uses only the characters [a-z]. 4) As the site works /tmp is oke as well.(perms, etc.) 5) There is enough free disk space in /tmp as well. a) using apache 1.3.34, php compiled as module(apxs) b) Kernel: 2.6.9-11.ELsmp (double processor) Is this a bug or a php programming error ? As it happens not always, just random/sometimes. Search the net for hours...no luck in finding the explanation. Hope to find some clue here. Thanks. -- Edit bug report at http://bugs.php.net/?id=35076&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35076&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35076&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35076&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35076&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35076&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35076&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35076&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35076&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35076&r=support Expected behavior: http://bugs.php.net/fix.php?id=35076&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35076&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35076&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35076&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35076&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35076&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35076&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35076&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35076&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35076&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35076&r=mysqlcfg