PHP 4.0 Bug #5976 Updated: cannot use 'user' session module
| From: | Bug Database | Date: | Sun, 06 Aug 2000 13:53:29 +0000 |
| Subject: | PHP 4.0 Bug #5976 Updated: cannot use 'user' session module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27932@lists.php.net to get a copy of this message | ||
ID: 5976
User Update by: marko@l-t.ee
Status: Feedback
Bug Type: Session related
Description: cannot use 'user' session module
No. CVS did not compile, so I replaced 4.0.1pl2 session/ with
CVS's one and tested this.
Seems like I forgot to mention my _main_ problem. That is, session.c
uses my 'open' & 'read' to start session, but seems like it uses
'files'
'write' & 'close' to end session. When I register my own shutdown function
that basically does
{
my_write(session_id(), session_encode());
my_close();
}
then everything works. My functions log to a file so I see that my write
does not even get called.
Before I sent a mail to -general, where this was described, but seems
like this was wrong place to send it, and afterward I forgot.
---- Now --enable-debug reports:
<b>Warning</b>: Failed to write session data (files). Please verify that the current
setting of session.save_path is correct (/tmp) in <b>Unknown</b> on line
<b>0</b><br>
Unknown(0) : Warning - Failed to write session data (files). Please verify that the current setting
of session.save_path is correct (/tmp)
session.c(1036) : Freeing 0x0815ADCC (8 bytes), script=/home/marko/public_html/pgsession/index.php
Last leak repeated 3 times
Full Bug description available at: http://bugs.php.net/?id=5976