#37111 [Fbk->Opn]: Apache crashes when strftime is called inside user defined session write func
| From: | haakonsk at gmail dot com | Date: | Mon, 17 Apr 2006 20:05:23 +0000 |
| Subject: | #37111 [Fbk->Opn]: Apache crashes when strftime is called inside user defined session write func | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95899@lists.php.net to get a copy of this message | ||
ID: 37111
User updated by: haakonsk at gmail dot com
Reported By: haakonsk at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
I can't download the debug pack, I get a 404 Not Found.
(http://snaps.php.net/win32/php5.1-dbgpack-win32-latest.zip)
Previous Comments:
------------------------------------------------------------------------
[2006-04-17 20:01:45] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2006-04-17 19:53:32] haakonsk at gmail dot com
Apache also crashes when getdate or date is called instead of strftime.
However, the "time" function does not cause Apache to crash.
------------------------------------------------------------------------
[2006-04-17 19:21:49] haakonsk at gmail dot com
Description:
------------
Apache crashes when strftime is called inside a user-defined session
write function. It doesn't seem to be a problem for the other
user-defined session functions (at least not open, close or read).
Reproduce code:
---------------
session_set_save_handler('sess_open',
'sess_close',
'sess_read',
'sess_write',
'sess_destroy',
'sess_gc');
function sess_write($id, $sess_data)
{
$time = strftime("%d %b %Y %H:%M:%S");
return true;
}
Expected result:
----------------
No crash
Actual result:
--------------
Apache crashes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37111&edit=1