From: Operating system: Any PHP version: Irrelevant Package: Session related Bug Type: Feature/Change Request Bug description:session_set_save_handler should support a core's session handler interface
Description: ------------ session_set_save_handler expects callbacks to session handler's operations (open, close, etc). It would be great if this function accepts a core's session handler interface. Something like: <?php interface Session_Handler_Interface { function open(); function close(); function read(); function write(); function destroy(); function gc(); } class Some_Handler implements Session_Handler_Interface { // implementations .... } $handler = new Some_Handler(); session_set_save_handler($handler); Then, we'll have an OOP approach too. The old one should not be removed. Thank you. -- Edit bug report at https://bugs.php.net/bug.php?id=60551&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60551&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60551&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60551&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60551&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60551&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60551&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60551&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60551&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60551&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60551&r=support Expected behavior: https://bugs.php.net/fix.php?id=60551&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60551&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60551&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60551&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60551&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60551&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60551&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60551&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60551&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60551&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60551&r=mysqlcfg