Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99700 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7091 invoked from network); 3 Jul 2017 07:11:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2017 07:11:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 40.92.65.68 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 40.92.65.68 mail-oln040092065068.outbound.protection.outlook.com Received: from [40.92.65.68] ([40.92.65.68:47416] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/68-60825-21EE9595 for ; Mon, 03 Jul 2017 03:11:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iEH86utHyR3jdMItcu4s1SGzjDQFGB6Y9tLKWilLtWQ=; b=YFNMPUIj6CspAvA7JvvphFIIYjxTT8Gc+tOOVcY2CprJNUy8iGfhCKNUIA5RthEa1Cyyi1LTRh9MJ9xauLYJReGxZsIJTX/Daj+qR+AOXcIJ0jqayGgvbi4aCn19G8XZnWjk/hK6OqqCamCUa3lk9pu8l56flNXvQDpX5PNI15Q1WqBfsYlXjwSIv6G+BiliGJEv3kXZPBjap/3+b0w4O9lLDkc14ONqmYsXGKp07MUUGz+1FWDpC9KRqN9zgqX+qTVhz6ymvgAVAWTPEW+cqXI+ggtdDyZXNWtDiJfVh+i8gYdh3jmVoXbwTO7wG2pgGSpLVl0KuJj+Y0rDy6TfFg== Received: from DB5EUR01FT023.eop-EUR01.prod.protection.outlook.com (10.152.4.55) by DB5EUR01HT124.eop-EUR01.prod.protection.outlook.com (10.152.5.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1220.9; Mon, 3 Jul 2017 07:11:10 +0000 Received: from HE1PR07MB1148.eurprd07.prod.outlook.com (10.152.4.60) by DB5EUR01FT023.mail.protection.outlook.com (10.152.4.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.9 via Frontend Transport; Mon, 3 Jul 2017 07:11:10 +0000 Received: from HE1PR07MB1148.eurprd07.prod.outlook.com ([fe80::7469:1b1e:c401:1cc4]) by HE1PR07MB1148.eurprd07.prod.outlook.com ([fe80::7469:1b1e:c401:1cc4%13]) with mapi id 15.01.1240.010; Mon, 3 Jul 2017 07:11:09 +0000 To: Dmitry Stogov CC: "nikita.ppv@gmail.com" , Sara Golemon , PHP internals list Thread-Topic: 7.2 behavior break, Bug #74836 isset on zero-prefixed numeric indexes in array broken Thread-Index: AQHS88nzuzk/Y22k70yGF+PWzm4sd6JBr3eA Date: Mon, 3 Jul 2017 07:11:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:D65900B33E839C82E0E373810A55A9255616F603CF7F2DE48E8A50338C794F91;UpperCasedChecksum:24BA6DACEFD70AA8E3757B8BB2390E53AF3939AA04629217BB282C34A457D959;SizeAsReceived:7503;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ZEPmeHHYLDnSAOnNIPb+1KJqtQMiK17X] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB5EUR01HT124;7:bOlhtcVxKGL2pBZeNti4EVj5hyNMKLD3Jjxs6aRy1jdTfx0HN9JU7GSx1oDsgcbU6J8NTj6S00Bv3tEI9lhpKO1CwRs36fmNGzg9HulUUfXrvj5yHjOcw9Aqn6fP6Nq8FUrXFGo57T66NetJRp1D8ysUDasnYqVT61Ytp3SAhllMHVDXNbz6a5dolS5oOSlWD+xIQPZVvusW6teHG15cVoPVS0qYz3nqkLzmzXApNuy52kmRe2dwjCOjalEYcJ1yB7SqYAI5zTkopMthoefWWaW1qvuBlwLDP0cbkylth8OXTagQ849Vs/ItKwUZAirLMoakksFhj5a2kzyLs2IWFOhOWpTLKJlgtPRZGGY2vQ4bUMAZku/09CpinL3KLCCctTPpMHZ4dxLwhNDQFGXhQNqCa+4/JP/ItbeoSCdC/GWOJliBqx0/aJBR/NJ5+nN3BlvCtL4GA/UiNC6+dNTcGcKBcaFAaV/lgLVilOYh6TCYmwbjlXBXm2hOqABOk2XbbkGTnbuLXaDXy0IR/Jf2ze71bemlZi/Z8ipJ1WuF/ETumTXknD5s6nFjyCkfRvv3xEHc9QaLs1blPVLtiwX0FYbwVHJGRZBrYVE00spJWdwd8iNrO9UglPBSsxLi+cWsKopdr6/ljQPkfd5K/Vv15roWEFEVjmfqXTSeMUD4if++s6Nkq+acf/w2TLIKSufCYAT3W5jC49wkX3vpuXMwErHX73AZo0IpiSeIi3gAYnMroR/GfaO03mTtDMsYCQ6jBxsER+md2uRkRULM381yHA== x-incomingheadercount: 46 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:DB5EUR01HT124;H:HE1PR07MB1148.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 4730a109-f20c-4fd2-0b5f-08d4c1e2ad4a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB5EUR01HT124; x-ms-traffictypediagnostic: DB5EUR01HT124: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:DB5EUR01HT124;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB5EUR01HT124; x-forefront-prvs: 035748864E spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_HE1PR07MB114812C04F38C91DFF40391BE2D60HE1PR07MB1148eurp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2017 07:11:09.8757 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT124 Subject: Re: 7.2 behavior break, Bug #74836 isset on zero-prefixed numeric indexes in array broken From: bobwei9@hotmail.com (Bob Weinand) --_000_HE1PR07MB114812C04F38C91DFF40391BE2D60HE1PR07MB1148eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Am 03.07.2017 um 09:03 schrieb Dmitry Stogov >: Hi, Please take a look at https://bugs.php.net/bug.php?id=3D74836 What is the best option to fix this? The most consistent way, from my point of view - disabling zero-prefexed nu= meric strings in all cases, but this is a new behavior break. Thanks. Dmitry. Hey, yep, it's probably best to allow only reversible string->integer conversion= s here. We also shall then emit an E_NOTICE error, just like on normal arrays. I see no reason to let invalid indices just silently pass on strings. Bob --_000_HE1PR07MB114812C04F38C91DFF40391BE2D60HE1PR07MB1148eurp_--