#25103 [Fbk->Bgs]: Session handling that seg faults apache
| From: | sniper@php.net | Date: | Sat, 16 Aug 2003 01:21:42 +0000 |
| Subject: | #25103 [Fbk->Bgs]: Session handling that seg faults apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45995@lists.php.net to get a copy of this message | ||
ID: 25103
Updated by: sniper@php.net
Reported By: tony at tonybibbs dot com
-Status: Feedback
+Status: Bogus
Bug Type: Session related
Operating System: Linux (RedHat)
PHP Version: 4.3.2
New Comment:
Session extension does not work with references. Don't use those and
everything will be fine.
If it crashes, provide a SHORT example script (one php file),
max. 20 lines of code. (yes, you can make it shorter)
And/or a gdb backtrace.
Previous Comments:
------------------------------------------------------------------------
[2003-08-15 18:53:04] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-08-15 18:37:10] tony at tonybibbs dot com
Description:
------------
I have a custom php session handler that interacts with a database via
PEAR::DB. I have set session.save_handler to user. I have test this
using both MySQL and MS SQL Server 2000 on the backend. Running this
code can kill one of the Apache process consistently. The short
version of what I am doing is I authenticate my app, stick a user
object in the session using $_SESSION['user'] = &$userObj; Then later I
try to get that object out of the session by using $userObj =
&$_SESSION['user'].
To get code that reproduces this go here:
http://www.tonybibbs.com/filemgmt/visit.php?lid=5
Reproduce code:
---------------
http://www.tonybibbs.com/filemgmt/visit.php?lid=5
Expected result:
----------------
I would expect that on page 2 I would get an instance of the object out
of the session Ok.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25103&edit=1