Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84308 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41504 invoked from network); 5 Mar 2015 00:16:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 00:16:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.213.43 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.213.43 mail-yh0-f43.google.com Received: from [209.85.213.43] ([209.85.213.43:43989] helo=mail-yh0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/0C-56703-440A7F45 for ; Wed, 04 Mar 2015 19:16:05 -0500 Received: by yhab6 with SMTP id b6so24001338yha.10 for ; Wed, 04 Mar 2015 16:16:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Z7oRG5Ckv3z9hWZG7LLJhM5yU4m/3u5kgZr7ttNLwXA=; b=ZbXNxBJjWPjFkvC5hfrafaAfI54IjlQnO0LrBTMlkqZxKqiSVjfpoW38AxSSGn+nf1 riU/UdqACLfY3KSB9a+oBZBV7UO3kOPngWX6udBpKYTvrjyg2piEXoVCc3l3JPvd1Kms SRXkPfmE9Mt/wFfthbukmKf7UiwEwxjgBjytJ+upflFaODydMD4uyuAsRPqQ2gbcNm2z XN5N4ilwhqOM95c2s1GBv9lL1WAjxv+v7GRy/dM8OOa0kNpffdZqIRXd/8+UQ6ANLXv0 SdgmFpHOmAnsrWj0oiAaDXweEJT+I8bqbrDyxwlMr3Ry1kG1bzstk14R28/ie43jwTFu 44Sg== X-Gm-Message-State: ALoCoQl7n02woSiSGIg1mVI2VFS0HuRF5QbxXR3eJDhZHsk4UY2W/3EFEphVlkjTiFtseRwSWZFX MIME-Version: 1.0 X-Received: by 10.170.91.193 with SMTP id i184mr5392355yka.17.1425514561234; Wed, 04 Mar 2015 16:16:01 -0800 (PST) Received: by 10.170.71.86 with HTTP; Wed, 4 Mar 2015 16:16:01 -0800 (PST) X-Originating-IP: [78.147.3.129] In-Reply-To: <885a29db28bc96b2d3cd2ac96907e39f@mail.gmail.com> References: <885a29db28bc96b2d3cd2ac96907e39f@mail.gmail.com> Date: Thu, 5 Mar 2015 00:16:01 +0000 Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Question/comment about the Array to String conversion RFC From: danack@basereality.com (Dan Ackroyd) On 2 March 2015 at 14:24, Zeev Suraski wrote: > https://wiki.php.net/rfc/array-to-string (which I voted yes to) deviates > from our guidelines of deprecating features first, and removing them > later; > > Should we not go through this deprecation cycle, even if may feel anxious > to get rid of this behavior? I don't think it's required. The purpose of deprecation notices is to allow people to detect issues in their code that is currently working as they want, and without giving any warning messages. This allows them to estimate how much effort it would be to upgrade to a newer version of PHP, one in which the behaviour is no longer allowed, without actually having to refactor all the code to find out. In this case, the code already produces a notice that says the behaviour is not completely ok, so people are able to detect where array to string conversion is happening. Having an intermediate step of E_DEPRECATED notice would not affect the amount of code that they would need to change nor will it make it significantly easier to detect places in their code where this behaviour is occurring. cheers Dan