Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27898 invoked from network); 21 Jan 2016 22:08:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2016 22:08:26 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-yk0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:34215] helo=mail-yk0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/53-09073-8D651A65 for ; Thu, 21 Jan 2016 17:08:25 -0500 Received: by mail-yk0-f170.google.com with SMTP id a85so65518897ykb.1 for ; Thu, 21 Jan 2016 14:08:24 -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:content-transfer-encoding; bh=GwcH1gV5bzU6ZIVkuzxRLMNh5x40A+2Z/tG3XN5aFgM=; b=UVnXltg63gBUMYXJZnYccU5JNaYrc5ygvBGpa8+4JcEUcrLtGOsPJYBFZwOQpFrFFN Shh49LLk3salDZgWKgQMzjCuYEzxlTvr1TAjDm5EeF7JIuYVw/K0mBnxy4OYiXUaoQeP piAzRYhWFXTREY+5wsk2DyYleFTo8q+Y2q+kh9nvrYLRuYTgYQHLVsl/Tj7rLh4uqPaP yih6q8djL6sz+qrqlynn2bKX1RWoDlE2FFkj7hflYBOD2lNmHNEthG11a0TbzWBgqtFf wEuEE0P65Il1l9T1xPVMZxVVhKRGhNJ+8rjuG21Sn0IHL5JLiQCQ2UDubAYsWQ332g8C EOHQ== 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 :content-transfer-encoding; bh=GwcH1gV5bzU6ZIVkuzxRLMNh5x40A+2Z/tG3XN5aFgM=; b=B5t0Uvsu14c2AK/Gr02FVNMmQBG/UGw83H1t+SSxX0Sa4VZU1UiZxHG580JH25NCDV s4XqeWV0cFPgYc8tr2NaMkj++qfUBk0c24pJHjuP2spD86pgTNf3mU4yvEdrA6FtDJrX GEVXEPGNiKX5PZBNArEU3G88vKezthDuXCCPngCASuQp/nriNS1CJaQy4WJU+pIQKzPN Je794LVsjunwyAPDg2vJEKkgM7ACu/qWQiizgldx4ma2EvoYzdNxaQqmfa9/CGKOgQ67 pmWKMBNQ+OWAXEzhzirNVIeVNGva1WLK+odqXsIfiGnSwZem90TTTtVDTEb42Dlckn87 K5Yw== X-Gm-Message-State: ALoCoQnpHlqF5N8pqZ/DUd67fe3cVnhnzaNVelUuZMo1ZzqUyJC5TK6Ic24nPaSZ0mAcHxn1MzGpd6jvnS6G/4TCK5ATmuywEg== X-Received: by 10.37.230.133 with SMTP id d127mr14480646ybh.134.1453414102461; Thu, 21 Jan 2016 14:08:22 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.88.139 with HTTP; Thu, 21 Jan 2016 14:07:43 -0800 (PST) In-Reply-To: <56A1054A.5080102@fedoraproject.org> References: <03a501d15439$fcbf9ca0$f63ed5e0$@php.net> <56A1054A.5080102@fedoraproject.org> Date: Fri, 22 Jan 2016 07:07:43 +0900 X-Google-Sender-Auth: n-QTNsyBIhHAmwwys2cl_N2eGmA Message-ID: To: Remi Collet Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 7.0.3 RC1 is available for testing - **** BC break *** From: yohgaki@ohgaki.net (Yasuo Ohgaki) HI Remi and all, The reason of this BC I can think of immediately is location of GC. GC was performed after session read previously. GC is moved before session read because previous logic is buggy. Old behavior: - Do session read (Session data is initialized and store in memory) - Do session GC. (Previously read session data is deleted because it should be removed) - Obsolete session data is written and alive. New behavior: - Do session GC. (All obsolete data is removed) - Do session read (Obsolete data is gone. Initialize empty $_SESSION) - Newly created $_SESSION is used and obsolete session data is gone. I think the reported BC would be fixed by moving GC location in previous place. In fact, I had to fix phpt by the change. Old behavior may activate obsolete (should be deleted session). This is wro= ng. This could happen in low traffic sites more often. We have 2 choices - Enforce new and correct behavior since it will not affect normal operation. i.e. Actual production site - Restore old behavior for the time being. (For this option, I prefer to restore only for PHP 5.6, but Ok for PHP 7.0 also. No for master) Since current session module does not manage session data expiration precis= ely, restoring old behavior makes sense as we don't have to/cannot be strict about session data management anyway. Patch for fixing BC would be this, if I'm correct about the cause. e8f1c29cc96ce333fa808aba126297b77d94abdf (main patch) 57be57ac94ef46fa7a73889a1e7d6e75aa4ab00f (TSRM fix for PHP 5.6) I appreciate if you could run tests without these patches! Thanks. Any comments? -- Yasuo Ohgaki yohgaki@ohgaki.net On Fri, Jan 22, 2016 at 1:20 AM, Remi Collet wrote= : > Le 21/01/2016 11:53, Anatol Belski a =C3=A9crit : >> Hi, >> >> PHP 7.0.3 RC1 was just released and can be downloaded from: > > Fedora detected a BC break in 5.6.18RC1 and 7.0.3RC1 related to > session management. > > This update breaks: > > Horde_SessionHandler (2.2.6) and symfony (2.7.9) > > https://apps.fedoraproject.org/koschei/package/php-horde-Horde-SessionHan= dler > > + /usr/bin/phpunit . > PHPUnit 4.8.17 by Sebastian Bergmann and contributors. > .FE.ESPHP Warning: session_destroy(): Trying to destroy uninitialized > session in > /builddir/build/BUILD/php-horde-Horde-SessionHandler-2.2.6/Horde_SessionH= andler-2.2.6/test/Horde/SessionHandler/Storage/BuiltinTest.php > on line 115 > ...........SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS........... > Time: 231 ms, Memory: 5.00Mb > There were 2 errors: > 1) Horde_SessionHandler_Storage_BuiltinTest::testReopen > Undefined index: sessiondata > /builddir/build/BUILD/php-horde-Horde-SessionHandler-2.2.6/Horde_SessionH= andler-2.2.6/test/Horde/SessionHandler/Storage/BuiltinTest.php:45 > 2) Horde_SessionHandler_Storage_BuiltinTest::testDestroy > session_destroy(): Trying to destroy uninitialized session > /builddir/build/BUILD/php-horde-Horde-SessionHandler-2.2.6/Horde_SessionH= andler-2.2.6/test/Horde/SessionHandler/Storage/BuiltinTest.php:79 > -- > There was 1 failure: > 1) Horde_SessionHandler_Storage_BuiltinTest::testRead > Failed asserting that two strings are equal. > --- Expected > +++ Actual > @@ @@ > -'sessiondata|s:3:"foo";' > +'' > /builddir/build/BUILD/php-horde-Horde-SessionHandler-2.2.6/Horde_SessionH= andler-2.2.6/test/Horde/SessionHandler/Storage/BuiltinTest.php:33 > FAILURES! > Tests: 36, Assertions: 84, Errors: 2, Failures: 1, Skipped: 37. > PHP Warning: session_destroy(): Trying to destroy uninitialized > session in /usr/share/pear/Horde/Cli.php on line 530 > > > + /usr/bin/php -d > include_path=3D.:/builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarc= h/usr/share/php:/usr/share/php > /usr/bin/phpunit --exclude-group benchmark,intl-data,tty --bootstrap > bootstrap.php > /builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarch/usr/share/php/S= ymfony/Component/HttpKernel > PHPUnit 4.8.17 by Sebastian Bergmann and contributors. > .............................................FDumpDataCollectorTest.php o= n > line 89: > 123 > ................. 63 / 440 ( 14%) > ............................................................... 126 / > 440 ( 28%) > ............................................................... 189 / > 440 ( 42%) > ............................................................... 252 / > 440 ( 57%) > ............................................................... 315 / > 440 ( 71%) > ............................................................... 378 / > 440 ( 85%) > .............SSSSSSSSSSSSSSSSSS............................... > Time: 17.34 seconds, Memory: 17.00Mb > There was 1 failure: > 1) > Symfony\Component\HttpKernel\Tests\DataCollector\DumpDataCollectorTest::t= estCollectHtml > Failed asserting that two strings are identical. > --- Expected > +++ Actual > @@ @@ > -
 href=3D"test:///builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarch/=
usr/share/php/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataColl=
ectorTest.php:89"
> title=3D"/builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarch/usr/sh=
are/php/Symfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorT=
est.php"> class=3Dsf-dump-meta>DumpDataCollectorTest.php on line  class=3Dsf-dump-meta>89:
> + 
 title=3D""> on line  class=3Dsf-dump-meta>89:
>  123
>  
> /builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarch/usr/share/php/S= ymfony/Component/HttpKernel/Tests/DataCollector/DumpDataCollectorTest.php:1= 18 > FAILURES! > Tests: 746, Assertions: 1310, Failures: 1, Skipped: 18. > Legacy deprecation notices (11) >>>>>>>>>>>>>>>>>>>>>>>> > /builddir/build/BUILDROOT/php-symfony-2.7.9-2.fc24.noarch/usr/share/php/S= ymfony/Component/Intl > + RET=3D1 > > > Of course, both test suites were OK with 5.6.17. > > Remi. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >