PHP 4.0 Bug #5976: cannot use 'user' session module
| From: | marko at l-t dot ee | Date: | Fri, 04 Aug 2000 20:05:07 +0000 |
| Subject: | PHP 4.0 Bug #5976: cannot use 'user' session module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27745@lists.php.net to get a copy of this message | ||
From: marko@l-t.ee
Operating system: Linux
PHP version: 4.0.1pl2
PHP Bug Type: Session related
Bug description: cannot use 'user' session module
I have a module to store session data in PostgreSQL database.
Open & read part works, the write is buggy. In the log I get:
-- log --
<br>
<b>Warning</b>: Failed to write session data. Please check that the current
+setting of session.save_path is correct (/tmp) in <b>Unknown</b> on line
+<b>0</b><br>
<br>
-- strace --
write(1, [ my own html ] .., 53) = 53
close(135476516) = -1 EBADF (Bad file descriptor)
write(1, "<br>\n<b>Warning</b>: Failed to "..., 168) = 168
-- php with --enable-debug
<br>
<b>Warning</b>: Failed to write session data. Please check 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. Please check that the current setting of
session.save_path is correct (/tmp)
session.c(1011) : Freeing 0x081329C4 (7 bytes), script=/usr/home/marko/public_html/stest/index.php
Last leak repeated 3 times
--
Test case and my module is available at http://195.222.18.13/php/pgsession.tgz