Re: [PATCH] session_set_save_handler(class)
| From: | Lukas Kahwe Smith | Date: | Fri, 27 Nov 2009 11:57:01 +0000 |
| Subject: | Re: [PATCH] session_set_save_handler(class) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46207@lists.php.net to get a copy of this message | ||
On 22.11.2009, at 06:12, Arpad Ray wrote:
> Attached is a patch (against HEAD, includes tests) which allows users to extend any session
> handler in an object oriented fashion.
>
> By extending the new internal class SessionHandler, users can wrap or override methods of
> whatever session handler is in use, or implement a complete custom handler.
>
> Usage notes:
> - Calling session_set_save_handler(class) after session_set_save_handler(a, b, c, d, e, f)
> wouldn't transparently extend the first
sounds useful. i assume with this i could extend for example the session handler that comes with the
Memcached extension? could you provide a code example of how that would look like?
regards,
Lukas Kahwe Smith
mls@pooteeweet.org