From:             tony at tonybibbs dot com
Operating system: Linux (RedHat)
PHP version:      4.3.2
PHP Bug Type:     Reproducible crash
Bug description:  Session handling that seg faults apache

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 bug report at http://bugs.php.net/?id=25103&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25103&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25103&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25103&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25103&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25103&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25103&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25103&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25103&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25103&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25103&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25103&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25103&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25103&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25103&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25103&r=gnused

Reply via email to