ID:               26223
 User updated by:  Xuefer at 21cn dot com
-Summary:          output/error in session write handler make php crash
 Reported By:      Xuefer at 21cn dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: win
 PHP Version:      4.3.4
 New Comment:

sorry for my careless
it took me so much time to track down this problem
but i don't know if it'll still crash if php env(system+apache+php..)
changed

<?php

touch('./127.0.0.1.3.4.5.6');
file_exists('./127.0.0.1.3.4.5.6');

function n()
{
        return true;
}


function write()
{
        file_exists('Unknown');
}

session_set_save_handler ("n", "n", "n", "write", "n", "n");
session_start();
?>


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

[2003-11-13 19:46:05] [EMAIL PROTECTED]

Make sure you do not have older PHP dlls anywhere on your system. I am
unable to replicate the crash using latest CVS on either windows on
linux.

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

[2003-11-12 21:04:25] Xuefer at 21cn dot com

function n(){ }
function write() {
$b = $a;
return true;
}
session_set_save_handler ("n", "n", "n", "write", "n", "n"); 

session_start();

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

[2003-11-12 12:55:52] [EMAIL PROTECTED]

Please supply a short script that can be used to replicate the problem.

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

[2003-11-12 11:35:16] Xuefer at 21cn dot com

Description:
------------
using session_set_save_handler()
in write handler, if an error occur or using echo, something is output,
php crash

this make script debugging very hard



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


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

Reply via email to