Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81365 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39261 invoked from network); 29 Jan 2015 09:31:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2015 09:31:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.54 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.54 mail-qg0-f54.google.com Received: from [209.85.192.54] ([209.85.192.54:45093] helo=mail-qg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/85-09212-BDDF9C45 for ; Thu, 29 Jan 2015 04:31:08 -0500 Received: by mail-qg0-f54.google.com with SMTP id q108so25579124qgd.13 for ; Thu, 29 Jan 2015 01:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=JiTv4kFAVrBg00k5vzrBnKfKMFi30f8n8+Aq6noCmo0=; b=GS62cwRP6uaSAfDNNzRyzZN+Nb814VChNZ1cpJYc2vgiR8eh6CeMVY+iS+75w73aFw tEH3h6HYCmRkEGmT2rw354Xx/0XwS7uRS6YdBpw1LMYDvHz9a6uYcMcCWZeRHjPUEI6t vhJ7O0QZpkFWuIrOCIIS9ZBkxxGqpptG6vqSnG3FdDICIY+BZXwSDVTP1gx4GwS+OUsY kZWXoLeVvRMTa65Itj2JFpX31kr9x2Vwf8y4kYtKCOKythy90OSGXN2bUTQHJX/4gJ/R yGVQXV5sXvKpYs7Xd1gBRASyOsicjZIJAnKguluaXtlcSLt5DZOYhKanG0Obf1C5EVRl PUEQ== X-Received: by 10.140.97.203 with SMTP id m69mr8895qge.39.1422523864923; Thu, 29 Jan 2015 01:31:04 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Thu, 29 Jan 2015 01:30:24 -0800 (PST) In-Reply-To: References: <54C9ECB1.7000901@fedoraproject.org> Date: Thu, 29 Jan 2015 18:30:24 +0900 X-Google-Sender-Auth: XevmCigpTlKJUoLqw95nITrTbrU Message-ID: To: Remi Collet Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113a2aa2a744aa050dc72573 Subject: Re: [PHP-DEV] Session: PS(mod)->create() or PS(mod)->read() parameter? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a2aa2a744aa050dc72573 Content-Type: text/plain; charset=UTF-8 Hi all, On Thu, Jan 29, 2015 at 5:24 PM, Yasuo Ohgaki wrote: > A new API seems really cleaner. > > > Reasonable discussion. I'll prepare API version patch later. This is the patch. It's not complete as user save handler requires more work. Simply read() is called as create() now. It's a PoC patch. https://github.com/yohgaki/php-src/compare/master-session-new-api2 It's not too complex compared to parameter version. https://github.com/yohgaki/php-src/compare/master-session-new-api The issue with create() is that it enforces save handlers to implement create(). It may be implemented that to check null handler to allow save handler w/o create(), but it wouldn't look nice. Since all save handlers must be rewritten for PHP7, it would be the best to have only one save handler definition for internal save handlers while keeping user save handler compatibility. Dirty part can be hidden in mod_user.c. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a2aa2a744aa050dc72573--