#26223 [Opn->Fbk]: wired file system with session write handler make php crash

From: Date: Mon, 17 Nov 2003 20:01:52 +0000
Subject: #26223 [Opn->Fbk]: wired file system with session write handler make php crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50505@lists.php.net to get a copy of this message
 ID:               26223
 Updated by:       iliaa@php.net
 Reported By:      Xuefer at 21cn dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: win
 PHP Version:      4.3.4
 New Comment:

Also does not crash...


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

[2003-11-14 00:09:21] Xuefer at 21cn dot com

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();
?>

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

[2003-11-13 19:46:05] iliaa@php.net

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] iliaa@php.net

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


Thread (28 messages)

« previous php.bugs (#50505) next »