#14529 [Csd]: Returning non-string type from session read() segfaults. (User save handler)

From: Date: Mon, 21 Oct 2002 18:20:19 +0000
Subject: #14529 [Csd]: Returning non-string type from session read() segfaults. (User save handler)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22983@lists.php.net to get a copy of this message
ID: 14529 User updated by: jay1@swift-web.com Reported By: jay1@swift-web.com Status: Closed Bug Type: Session related Operating System: Linux RH 7.3 PHP Version: 4.2.3 New Comment: Sorry, cut and pasted part of my previous response out by mistake. It should of said, I installed 4.2.3 and compiled it with same options and tested the same scripts and this time there was no problems. Thus seeing same compile options were used it appears to be fixed. Previous Comments: ------------------------------------------------------------------------ [2002-10-21 13:17:29] jay1@swift-web.com Sorry, I had given up and hadn't tried any newer versions in a while. Just set up a box with 4.2.3 installed and this was manually compiled with the same options so it would suggest that the bug no longer exists. ------------------------------------------------------------------------ [2002-10-20 22:31:55] rasmus@php.net What bug? Like I said, I cannot reproduce it with the current code. Please verify that it is still happening with a current 4.3 snapshot. ------------------------------------------------------------------------ [2002-10-20 19:03:27] shanti@mojo.cc hi there .. can anyone now give a straight answer how to get rid of this bug .. or a really workaround ?? tnx4reply -c- ------------------------------------------------------------------------ [2002-09-17 01:00:01] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-08-16 22:03:33] rasmus@php.net Ok, so after all that, the summary of this bug is that returning a non-string from the read() function from a custom session handler causes a problem. I tried to reproduce this in current CVS by returning either false, null and random integers/floats and could not get a segfault. Please test a current snapshot and provide a short script that reproduces this. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14529 -- Edit this bug report at http://bugs.php.net/?id=14529&edit=1

« previous php.bugs (#22983) next »