Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26896 invoked from network); 28 Jan 2015 10:34:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 10:34:57 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:57224] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/6D-45774-15BB8C45 for ; Wed, 28 Jan 2015 05:34:57 -0500 Received: by mail-wg0-f53.google.com with SMTP id a1so19657526wgh.12 for ; Wed, 28 Jan 2015 02:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=jGKPcIRG3ZyjIwm3HFd3OOvu9zZo6CVmOKku5jg+LIc=; b=IhctFg7F4NrAP8FwNyzj+5y9QPk3sdEZlmqarKhIr3bYnsyb22Z4QnciW3CQLbDI2q rDEZELNrGslUT1Ja8/jpxE0O7RjhWrwXPgHafUqcO6OxiW+daesYXzzMVxZpIThqt7CI 7piinbv2qkBVVnpgM8Y2bsOPZKTjx+Oznd33B0wGXUsvIbV3fB6eBhTrLKv1Q/uTTF3k bNFWUSTlgm09HLJjispcXPc86VBTjWVK57O0lB0SFKNyeaefFRWnWgyJKtQDWE5YpaPq fDOJuWuxxPV6P2BYGTaywlF/BIsk6ZxFusoPH8hX1xbnvkOlwu4xM/5rYso9WGhPqHtV pyYw== X-Received: by 10.180.107.164 with SMTP id hd4mr5703275wib.7.1422441293565; Wed, 28 Jan 2015 02:34:53 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id tc2sm2153257wic.21.2015.01.28.02.34.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 02:34:52 -0800 (PST) Message-ID: <54C8BB29.7040703@gmail.com> Date: Wed, 28 Jan 2015 10:34:17 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP Internals References: <54C80F4F.7020905@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal: Raise severity of undefined constants From: rowan.collins@gmail.com (Rowan Collins) Benjamin Eberlei wrote on 28/01/2015 08:43: > I think this is too big a BC break. > > The usage of $array[key] = 0 instead of "key" is widespread. As I mentioned, the advice *not* to write that has been in the manual since 2001, so I can't think why any tutorial or example code would teach it as the right way, but it is possible, I suppose. I realise the majority of code is not available publicly, but it would be good to make some attempt to judge whether it really is widespread, so if you have any examples or way of measuring it, that would be useful. Regards, -- Rowan Collins [IMSoP]