Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103616 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99006 invoked from network); 21 Dec 2018 02:05:47 -0000 Received: from unknown (HELO NAM04-SN1-obe.outbound.protection.outlook.com) (40.107.70.137) by pb1.pair.com with SMTP; 21 Dec 2018 02:05:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kzKZ647GY7g6u89UiT5f0gPws0qiF9/7vlaL58YOP8o=; b=KUnTW3LEHSOUUr95JmhKanaGNQMiNwDz9FH+eitLpEsx1Sevlv2h72YlizO5XxN/xHB/cA+2OvXto3bLMwxMj2DyBDCdm+nuoQitkAciyoenOkasR+98Pxpi3DcnZ/kIbJfdHQT5xUEepXy5nAcrtmASKss0u12BXJifSrQWhUs= Received: from BY1PR02MB1260.namprd02.prod.outlook.com (10.162.109.14) by BY1PR02MB1114.namprd02.prod.outlook.com (10.162.108.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Thu, 20 Dec 2018 22:35:11 +0000 Received: from BY1PR02MB1260.namprd02.prod.outlook.com ([fe80::c4dc:13f7:8eed:ad32]) by BY1PR02MB1260.namprd02.prod.outlook.com ([fe80::c4dc:13f7:8eed:ad32%5]) with mapi id 15.20.1446.022; Thu, 20 Dec 2018 22:35:10 +0000 To: Levi Morrison , internals Thread-Topic: [PHP-DEV] [RFC][Vote] Covariant Returns and Contravariant Parameters Thread-Index: AQHUl/AqXVQDKTyJX0uvYhkVZIp9sqWHwGIygABrD7I= Date: Thu, 20 Dec 2018 22:35:10 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-originating-ip: [212.232.72.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY1PR02MB1114;6:s8J4Kj5ol6+M2np3Xbal8KvBIItETU/kix6OBNOSVqKuGBOk6SLGIm1SlsnZ2+qTUbYi+Nmf2TdEsDGY7QSnfcOcwYgp0DDUkJgMho2YPW6E379YiG851kzI484vcAohNybli7VTrKXKatpQG0o5/jcNFQFU+7oiSSvfyqIG+wovJbazILkEO7bKbt7WsOppA2a/vbxgL4GGdLlzKbfYoDlW13Ylv3CuYB2VhqmlMXbhdZRybj5mE7v2kdAqUL/knsb93O4igh7VRhNW0bO1mHOiQ2Q0fCPeDCx3sI4bLfPzp+BanxjfqRBR9bsA2LHoTN4+orLYqF8GdBdjxI4ioRatl7+eJbP5a/snDGOuuGhZ3EgDdFNH2LcKzhupsakXEqJetfWqnp+I0hbApQTNHrbsU57MDC4gsvHib7zIYUNEfoNlQ0DXMnV26yv715Npv9ZAHH2ShRBILMbCHW9IwNjwfrcVLbJ71sJ1HNgNiQw=;5:6rCfE4qopaRW6Qblt5G77S2uaaTKdmxcnFXtn5f/o6PrAgnrVuCe1GMkHSPnYhtFDBFRkZLfXnHrfhTfFGhmOllyGGmtaPNoZKr49uR7pvY500f662j1cCiImAvsnm/OE3L3lMsy42yy3VpMm9iKTobv/84tzfaln2qzgkYMVeA=;7:x6g232cpSCt9R+InijpBhiwTRx9zUd5VmMDc2tQlpF8IrIBNOwGDURNiRCEPY3Pa484MUXg/FTXHFNiiVRrisXv07JfxYnmm+JEg/dnYMrSNpGeR2p0pFObCVz6dvDViGHiHGph60zGzh+HlRkhyaA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ff8bf8a0-7b5b-435c-921f-08d666cb66a3 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY1PR02MB1114; x-ms-traffictypediagnostic: BY1PR02MB1114: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(3231475)(944501520)(4982022)(52105112)(10201501046)(3002001)(93006095)(93001095)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:BY1PR02MB1114;BCL:0;PCL:0;RULEID:;SRVR:BY1PR02MB1114; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(136003)(376002)(396003)(366004)(346002)(189003)(199004)(15188155005)(26005)(186003)(7736002)(16799955002)(256004)(345774005)(74316002)(105586002)(102836004)(476003)(76176011)(14444005)(53546011)(486006)(6506007)(446003)(11346002)(68736007)(106356001)(19627405001)(5660300001)(110136005)(236005)(6486002)(229853002)(6246003)(66066001)(9686003)(54896002)(6512007)(53936002)(6606003)(97736004)(6306002)(316002)(25786009)(6116002)(3846002)(1015004)(86362001)(8936002)(2906002)(93156006)(71200400001)(99286004)(33656002)(966005)(2940100002)(606006)(71190400001)(14454004)(478600001)(6436002)(81166006)(8676002)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR02MB1114;H:BY1PR02MB1260.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: hPUhV/zKXHw75oUQpcyIsVGQ5BO/r3+Y/st4Rx8eCVlEWh/O8Ca3kJ8w/h8T7MhHAGT0DxZMNg4wV5ScTZRI+QgfvUzZYxy570XquaHPWDMJ1FAZCTSxuz/Zlp6pqdnJqtWBlmQGcWEK4W/IFeC+vYdaJ8y1h16QRgVnBy5tDtb/dx4YFw2MSFRWC3LQTFSE2vEnXBH3qa4vhyKq3apXYqjS5+AFmCH0ATI7TptfmNFata35iTzl5//cfn5DDYb/xFQn2zgxAuNFA3fJ3Ven5V8MMPJKiunQ8xGR1WadL+cNumx6u/H5VbtGNk50w1zm spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM6PR02MB5932213FE22E684434FD1557BFBF0DM6PR02MB5932namp_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff8bf8a0-7b5b-435c-921f-08d666cb66a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 22:35:10.3872 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR02MB1114 Subject: Re: [PHP-DEV] [RFC][Vote] Covariant Returns and Contravariant Parameters From: dmitry@zend.com (Dmitry Stogov) --_000_DM6PR02MB5932213FE22E684434FD1557BFBF0DM6PR02MB5932namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Levi, It looks like the patch broke something related to opcache. It crashes at least on Wordpress and Drupal. The backtrace https://gist.github.com/dstogov/a2305381a5c9982cceca9e4e252d2= 6c7 shows use-after-free in opcache (works fine with master). Inability to work with opcache, doesn't allow to check the performance impa= ct. It also broke few tests. Some crash. Some produce different warning/errors. $ make test TESTS=3D"Zend tests" ... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAILED TEST SUMMARY --------------------------------------------------------------------- ZE2 ArrayAccess and ArrayAccessReferenceProxy with references to main array= [tests/classes/array_access_011.phpt] Bug #21478 (Zend/zend_alloc.c :: shutdown_memory_manager produces segfault)= [Zend/tests/bug21478.phpt] Generator methods can yield by reference [Zend/tests/generators/generator_m= ethod_by_ref.phpt] Testing to implement Serializable interface by traits [Zend/tests/traits/in= terface_003.phpt] Handling of public fields with traits needs to have same semantics as with = normal inheritance, however, we do add strict warnings since it is easier t= o run into something unexpeted with changing traits. [Zend/tests/traits/pro= perty009.phpt] iterable type#004 - Parameter covariance [Zend/tests/type_declarations/iter= able_004.phpt] iterable type#005 - Return type covariance [Zend/tests/type_declarations/it= erable_005.phpt] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I'll try to play with patch and make a full code review on next week. It would be great, if you fix opcache compatibility. If it can't be done in reasonable time, it's probably better to cancel voti= ng and restart when ready. Thanks. Dmitry. ________________________________ From: Dmitry Stogov Sent: Thursday, December 20, 2018 6:26:10 PM To: Levi Morrison; internals Subject: Re: [PHP-DEV] [RFC][Vote] Covariant Returns and Contravariant Para= meters Hi Levi, Please, create a Pull Request, to keep inline comments on github. Thanks. Dmitry. ________________________________ From: Levi Morrison Sent: Thursday, December 20, 2018 2:10:57 AM To: internals Subject: [PHP-DEV] [RFC][Vote] Covariant Returns and Contravariant Paramete= rs Thank you for the feedback and discussion on the [Covariant Returns and Contravariant Parameters RFC][1]. I have opened [voting on this RFC][2]. Given that this is a common time for holidays for many people around the world it will be open until at least January 2nd. Happy holidays! [1]: https://wiki.php.net/rfc/covariant-returns-and-contravariant-paramet= ers [2]: https://wiki.php.net/rfc/covariant-returns-and-contravariant-paramet= ers#voting -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php --_000_DM6PR02MB5932213FE22E684434FD1557BFBF0DM6PR02MB5932namp_--