From:             
Operating system: Debian Lenny Linux
PHP version:      5.3.3
Package:          Session related
Bug Type:         Bug
Bug description:User Session handler Crash [FPM and APC]

Description:
------------
Registering a user session handler crashes the system.



System:

php 5.3.3-fpm (from dotdeb repo)

APC extension





Test script:
---------------
class Session

    {      

        public static function Init(){

            ini_set('session.save_handler', 'user');



            session_set_save_handler(array('Session', 'open'),

            array('Session', 'close'),

            array('Session', 'read'),

            array('Session', 'write'),

            array('Session', 'destroy'),

            array('Session', 'gc')

            );

            session_start();

        }

        public static function open() {

            return true;

        }

        public static function close() {

            return true;

        }

        public static function read($id) {

            return '';

            //return
apc_exists('ns_'.$id)?(string)apc_fetch('ns_'.$id):'';

        }

        public static function write($id, $data) {

            //return apc_store('ns_'.$id,$data,1200);

        }

        public static function destroy($id) {

            //apc_delete('ns_'.$id);

            return true;

        }

        public static function gc($max) {

            return true;

        }

    }

Expected result:
----------------
Session registration

Actual result:
--------------
Crash, if someone gives me details on how to valgrind php-fpm ill post a
backtrace, ive failed to do so.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52720&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52720&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52720&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52720&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52720&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52720&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52720&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52720&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52720&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52720&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52720&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52720&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52720&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52720&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52720&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52720&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52720&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52720&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52720&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52720&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52720&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52720&r=mysqlcfg

Reply via email to