Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42195 invoked from network); 19 Oct 2016 11:58:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2016 11:58:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:43529] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/44-14749-8DF57085 for ; Wed, 19 Oct 2016 07:58:18 -0400 Received: (qmail 55403 invoked by uid 89); 19 Oct 2016 11:58:13 -0000 Received: from unknown (HELO mail-qk0-f170.google.com) (yohgaki@ohgaki.net@209.85.220.170) by 0 with ESMTPA; 19 Oct 2016 11:58:13 -0000 Received: by mail-qk0-f170.google.com with SMTP id f128so29783152qkb.1 for ; Wed, 19 Oct 2016 04:58:12 -0700 (PDT) X-Gm-Message-State: AA6/9RnvOKRnLRIUHsA6zi7K2cUIvJRUTyMCHy59tOkk3rQyCBDZTAL31kN/9TWcQJ/kBz+MS/VuZPiWJZvkrg== X-Received: by 10.55.114.131 with SMTP id n125mr5442623qkc.17.1476878286339; Wed, 19 Oct 2016 04:58:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.38 with HTTP; Wed, 19 Oct 2016 04:57:25 -0700 (PDT) In-Reply-To: <1d22f996-27b6-35bb-03a6-df3acf9e33d4@gmail.com> References: <1d22f996-27b6-35bb-03a6-df3acf9e33d4@gmail.com> Date: Wed, 19 Oct 2016 20:57:25 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: Davey Shafik , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Fixing insane session_start() behaviors From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Stas, On Wed, Oct 19, 2016 at 3:08 PM, Stanislav Malyshev wrote: >> I pushed patch fixes number of nonsense/inconsistent session function >> behaviors. The additional patch is pushed so that it's easy to cherry >> pick minimum fixes. The last push is the additional fixes. > > These changes look like a reasonable cleanup. I'm not a big fan of > zend_parse_parameters_none additions, since I don't see any useful > function for them, but they don't hurt either. I left some notes on the > patch though, please look there. > > I'm not sure about 7.1 - while I don't see anything that would break any > reasonable code, except issues noted on the pull, the patch is pretty > big and I might have missed something. I guess it's for RM to decide. No > objection for 7.2. > > I notice that most test changes deal with scenarios that were covered > before, are there tests that test the new things - the scenarios for > which handling has changed? I couldn't find tests for some cases, like > INI modification, would be nice to add them. > > Also, a reminder that you'd have to update all the documentation in the > manual to reflect the change in the return values. And UPGRADING too. Thank you. I replied to your comments. There is one debatable comment regarding session_cache_limiter(). We may delay error check at 'headers sent'. I suppose almost all usage is misuse. Only valid use case is Other than this, all calls after session_start() is invalid. Valid use case is very limited and unlikely. If users have to change cache limiter, they can session_commit(), then session_start(). So I would like to keep as it is now. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net