Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46395 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77471 invoked from network); 9 Dec 2009 23:36:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2009 23:36:41 -0000 Authentication-Results: pb1.pair.com header.from=arraypad@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arraypad@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.219.219 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arraypad@googlemail.com X-Host-Fingerprint: 209.85.219.219 mail-ew0-f219.google.com Received: from [209.85.219.219] ([209.85.219.219:45636] helo=mail-ew0-f219.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/8A-25115-884302B4 for ; Wed, 09 Dec 2009 18:36:41 -0500 Received: by ewy19 with SMTP id 19so2570313ewy.1 for ; Wed, 09 Dec 2009 15:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=l+M4MBEyrECpPXPg9etNytOvlhO9z9N5965xtDZUh6I=; b=PGzzZRr0gMk6EfByz725EvJlH8SCp/4VonzDwzCM75jAkBwWAO4MRRxsYjr9uVmFe0 Rk8HWcqn5BZvFY/Gfmnfw4NKBrjmrS+fKgCL/WVjs1k4ZMmiq6vTYTjwVXabZRPKs/Kb UazajcAyGbv8uw7Hfj8CBTtlqufjfIjuGouCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XUbdwoEaiF1DvRzPKFFSFXWRRH1K/EnJAHAvx5LZ1EVioU/wdko6d2CJ1wlBa4nXka 0pHlywJEJW/FKORVi0W0oucQUSgOD6NMIyMK3NWpVeDIA8qC9YlgrCfFTHLONjP80t2x QHON9nadsvxE70zW0+u1JrBZiUfkvmbMpakXI= MIME-Version: 1.0 Received: by 10.213.25.69 with SMTP id y5mr11123202ebb.54.1260401796329; Wed, 09 Dec 2009 15:36:36 -0800 (PST) In-Reply-To: <4B202FC6.6010400@zend.com> References: <4B1F0CFE.4040505@zend.com> <4B202FC6.6010400@zend.com> Date: Wed, 9 Dec 2009 23:36:36 +0000 Message-ID: To: Stanislav Malyshev Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=000e0ce0d4885830e2047a54292b Subject: Re: [PHP-DEV] [PATCH] session_set_save_handler(class) From: arraypad@googlemail.com (Arpad Ray) --000e0ce0d4885830e2047a54292b Content-Type: text/plain; charset=ISO-8859-1 Hi, On Wed, Dec 9, 2009 at 11:16 PM, Stanislav Malyshev wrote: > It now raises an error rather than segfaulting if the user module is >> selected but no handler has been registered. This should really halt >> execution which it doesn't at the moment but I'll raise that separately. >> > > I'd say if it's "user" then it should return an error from the set_handler > function. > > > Do you mean when session_set_save_handler() is called more than once? That's quite harmless and I think it would be useful to wrap frameworks' session handlers. The error I'm talking about is when the ini setting session.save_handler is set to user - we get this during module start-up when the ini settings are registered. This is an erroneous configuration since we have no way of registering the user handlers at that time. > 4. I think it also makes sense to allow passing object instead of >> class. >> >> >> I've allowed objects to be passed now but I think this should probably >> be discouraged since it's going to be called in a static context anyway. >> > > I don't see anything inherently wrong with having session object. > > I don't think that there's anything inherently wrong with it, just that it's slightly inefficient and offers no benefits since $this isn't available. Regards, Arpad --000e0ce0d4885830e2047a54292b--