Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46207 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18496 invoked from network); 27 Nov 2009 11:57:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2009 11:57:13 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:48220] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/96-50315-69EBF0B4 for ; Fri, 27 Nov 2009 06:57:11 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 2B88C1EBC013; Fri, 27 Nov 2009 11:57:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hpveWsyKX4ua; Fri, 27 Nov 2009 12:57:31 +0100 (CET) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 523184144009; Fri, 27 Nov 2009 12:57:31 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Fri, 27 Nov 2009 12:57:01 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Arpad Ray X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] [PATCH] session_set_save_handler(class) From: mls@pooteeweet.org (Lukas Kahwe Smith) 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. >=20 > 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. >=20 > 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=20 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