Hi Andrey, On Sat, Jan 24, 2015 at 6:34 PM, Andrey Andreev <n...@devilix.net> wrote:
> > Let's keep SessionHandler class. However, > > PHP_FUNCTION(session_set_save_handler) > > should be cleaned up to verify implemented/extended interface/class. It's > > BC. > > Do you have opinion for this? > > php > session_set_save_handler(new stdclass); > PHP Warning: session_set_save_handler() expects parameter 1 to be > SessionHandlerInterface, object given in php shell code on line 1 As I pasted code in this thread, current code does not check if supplied object has valid class/interface, but it checks methods implemented. SdtClass does not have them obviously, therefore it raises error. It's a legacy code when PHP didn't have proper OOP support. This is the code that I'm willing to remove/change. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net