Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52503 invoked from network); 9 Dec 2009 02:35:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2009 02:35:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:45315] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/1B-21824-20D0F1B4 for ; Tue, 08 Dec 2009 21:35:47 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id B923FE11FF; Tue, 8 Dec 2009 18:32:45 -0800 (PST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 8 Dec 2009 18:35:44 -0800 Message-ID: <4B1F0CFE.4040505@zend.com> Date: Tue, 08 Dec 2009 18:35:42 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1pre Thunderbird/3.0 MIME-Version: 1.0 To: Arpad Ray CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Dec 2009 02:35:44.0103 (UTC) FILETIME=[4E72B770:01CA7878] Subject: Re: [PHP-DEV] [PATCH] session_set_save_handler(class) From: stas@zend.com (Stanislav Malyshev) Hi! > 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. Couple of notes: 1. I'd call mod_active something more clean - like session_active? 2. What happens if session module is set to "user" in configuration - what old_mod will be then and how this patch will work? 3. old_mod is also not a clear name - maybe default_mod? 4. I think it also makes sense to allow passing object instead of class. 5. In fact, thinking about it - maybe it should be an interface and not a class? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com