ID:               37968
 User updated by:  corey at motionworks dot com dot my
 Reported By:      corey at motionworks dot com dot my
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: WinXP
 PHP Version:      5.1.4
 New Comment:

Ok, obviously the dbg pack ist being picked up. (still working on it)


Previous Comments:
------------------------------------------------------------------------

[2006-06-30 09:07:54] corey at motionworks dot com dot my

I have installed the MVC and the call stack is:
PHP5TS! 1009c95f()

The exact error message is:
"Unhandled exception in php-cgi.exe (PHP5TS.DLL): 0xC0000005: Access
Violation"


I dont think this is helpful :-)

Please note the code above should be:
$_SESSION['foo'] = 'bar';
instead of:
sess_write('foo', 'bar');

------------------------------------------------------------------------

[2006-06-30 07:12:33] [EMAIL PROTECTED]

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-06-30 03:57:23] corey at motionworks dot com dot my

Description:
------------
Using any of the following date functions inside a custom session
handler function causes PHP (and associated Apache thread) to crash.
Currently using PHP-CGI.

Functions:
date()
strtotime()
date_default_timezone_get()

time() - Works and doesnt't cause a crash

Reproduce code:
---------------
function sess_open($strSavePath, $strSessionName)
{
    return true;
}
function sess_close()
{
    return true;
}
function sess_read($strKey)
{
    return '';
}
function sess_write($strKey, $strVal)
{
    $strDate = date('d/m/Y H:i:s');
    return true;
}
function sess_destroy($strKey)
{
    return true;
}
function sess_gc($intMaxLifetime)
{
    return true;
}
session_set_save_handler(
            'sess_open',
            'sess_close',
            'sess_read',
            'sess_write',
            'sess_destroy',
            'sess_gc');
session_start();
sess_write('foo', 'bar');

Expected result:
----------------
It not to crash :-)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37968&edit=1

Reply via email to