Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90963 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2977 invoked from network); 27 Jan 2016 03:29:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2016 03:29:37 -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.160.171 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.171 mail-yk0-f171.google.com Received: from [209.85.160.171] ([209.85.160.171:36254] helo=mail-yk0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/71-28185-0A938A65 for ; Tue, 26 Jan 2016 22:29:36 -0500 Received: by mail-yk0-f171.google.com with SMTP id v14so226275207ykd.3 for ; Tue, 26 Jan 2016 19:29:36 -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=16k2gXAD9WrvRZI18/qRghIBjx8nvGleXt9v2G+SWwM=; b=0nctoK2m2/SMzV4T7BH1KrmHZtfxWim2p44dkA6NN2rtIIAoJgCfiSlAGec6g1DU8N e2eRiJbboRryL0eleUWheNoNnTuy2TYj8hSg1anDn+KodDdLFWMmKV+Tb1rrdS3uJNEx OyMqRBWX+UtkxbVugZLGvOVnMQNSYfZ4YVwgN5K/vjhXEPAlvqgD6y09S/Nqkygjhh18 uJndUmpCysi9VZjxe8+Xv4jiDb0QVzWqIOvhm+L/+q5gVGmWHOeDntmXlgJr3UHojkJK +93iEaEpYCcMyinTDLp2sGs0/P5KWC8Lgv+EwxGl76DK8i7XCNgYEQA9BB7eh9/C3gIt 7ghA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=16k2gXAD9WrvRZI18/qRghIBjx8nvGleXt9v2G+SWwM=; b=GF4pdPRlNtynMy4padxX05qu1uR9XkkuSgbJ1QYVtIBE1siZtj5G0E1klO6LhDrOY7 3u5kXsmye6xogJrrS+dzSAHrc4IdfN0Mh+X5wo1DOp7aUj5q4WsxH7bBWZvyb9UdPSgT RnCZ8p+qjcYlsM3jB1RSv4WWNlUkugGRrMRqEbBIGoFNeYMOyAtDxhHyluKXv7nEtDbs iE/Htpkqfm4mOyt2/4hFn0h0jxDhRQ5QSpGaJBVTLaijVaNNPOHvKzoNGX77oNsfi0hD 7O49hTgYSpxQoHhSDu5gZvvU3XFlorsDv/DKuMkbvxBXUCJDPoYQm3bADlXVaWKRhoiB Vn6A== X-Gm-Message-State: AG10YOT4hysl8wNzs4UHuf9XcTu+KqolyXj7nt1g8WZptsuADON/1jL5SuZ2o8T8BSyf3WCOPHJJS4p67ICgAg== X-Received: by 10.129.110.212 with SMTP id j203mr12989386ywc.184.1453865373234; Tue, 26 Jan 2016 19:29:33 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.88.139 with HTTP; Tue, 26 Jan 2016 19:28:53 -0800 (PST) In-Reply-To: References: <03a501d15439$fcbf9ca0$f63ed5e0$@php.net> <56A1054A.5080102@fedoraproject.org> <56A2069B.2050007@fedoraproject.org> <56A21D68.6030403@fedoraproject.org> <56A825A9.9020706@gmail.com> Date: Wed, 27 Jan 2016 12:28:53 +0900 X-Google-Sender-Auth: rNRgv4B-VLIaNV935HnHU6Is2OQ Message-ID: To: Stanislav Malyshev Cc: Remi Collet , "internals@lists.php.net" , Yasuo Ohgaki Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] PHP 7.0.3 RC1 is available for testing - **** BC break *** From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Wed, Jan 27, 2016 at 12:19 PM, Yasuo Ohgaki wrote: > > On Wed, Jan 27, 2016 at 11:04 AM, Stanislav Malyshev > wrote: >> >>>> It seems that using a user land SessionHandler, the "write" method >>>> is not called, raising this issue. >>> >>> Attached as .phpt >> >> Bisecting with this test shows a15e9ccba8a34553c029fb4574edba87c76447e5 >> as the breaking change. So we need to either fix it (this week, as next >> week it should be released) or revert this patch. > > Note for this issue. > The change does not breaks normal codes as PHP cannot set new session > ID when header is already sent. The session is _not_ accessible > anyway. Not writing orphaned session does not matter at all. > > If you understand exactly what is happening, it is understandable this > is not a BC for production code, but only breaks test code that > inspect session behaviors and it found out bogus write() is gone now. > > Anyway, to fix existing app/framework unit test failures, (it's not > fixing anything but leave bogus write(), though) > removing php_session_abort() from php_session_cache_limitter() should be enough. One additional note. Removing the php_session_abort() will result in session_start() return TRUE even when the session is unusable. This may results in hard to debug bug why session is lost in certain pages. Anyway, I don't have much opinion to restore old behavior including restoring crashes by save handler abuse for PHP 5.6. I think PHP 7.0 is better to keep the patch as is, but it may be fixed in PHP 7.1. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net