Edit report at http://bugs.php.net/bug.php?id=52720&edit=1
ID: 52720 Updated by: paj...@php.net Reported by: mat999 at gmail dot com Summary: User Session handler Crash [FPM and APC] -Status: Open +Status: Feedback Type: Bug Package: Session related Operating System: Debian Lenny Linux PHP Version: 5.3.3 Block user comment: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. A backtrace would help already, see the instructions on bugs.php.net. Previous Comments: ------------------------------------------------------------------------ [2010-08-28 09:47:00] mat999 at gmail dot com 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 this bug report at http://bugs.php.net/bug.php?id=52720&edit=1