Hello,
I did some more debug:
Testing on Window 7 - WAMP 2.0 - enable APC
"test.php"
<?php
require './includes/master.inc.php';
echo "Hello World!";
?>
"class.config.php" --> update Database information and ENABLE useDBSession
"master.inc.php" --> nothing change
"class.dbsession.php"
class DBSession
{
public static function register()
{
ini_set('session.save_handler', 'user');
session_set_save_handler(array('DBSession', 'open'), array('DBSession', 'close'), array('DBSession', 'read'), array('DBSession', 'write'), array('DBSession', 'destroy'), array('DBSession', 'gc'));
}
public static function open(){
return true;
}
public static function close(){
return true;
}
public static function read($id){
return '';
}
public static function write($id, $data){
return true;
}
public static function destroy($id){
return true;
}
public static function gc($max){
return true;
}
}
===========================================
With the above configuration, running "test.php" a few time cause WAMP to crush.
When I comment the bellow lines, the script run fine.
//ini_set('session.save_handler', 'user');
//session_set_save_handler(array('DBSession', 'open'), array('DBSession', 'close'), array('DBSession', 'read'), array('DBSession', 'write'), array('DBSession', 'destroy'), array('DBSession', 'gc'));
Does "session_set_save_handler(....)" conflict with APC?
That doesn't make sense :( or maybe did I miss something?
Could anyone confirm if this also happen on other OS or other HTTP server?
Thanks