Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65529 invoked from network); 19 Feb 2015 09:21:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 09:21:38 -0000 Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:43908] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/26-22021-02BA5E45 for ; Thu, 19 Feb 2015 04:21:37 -0500 Received: by mail-wi0-f180.google.com with SMTP id h11so7700814wiw.1 for ; Thu, 19 Feb 2015 01:21:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=IEcNpC0lUyUhwBzqDAha5RxIDPNd0YlrSYrOoACPACA=; b=ixBCP1EAylIzKSnKkYwTyGZez4u/y2LnxiY7yTtOyR9PrvWOx/6GCcVCSbcaa0ikF+ Six5vnkwdNd3fP6Rp/TmWJGecKLS5WuSffl4m6LperTn1ltuDWDZhiWmZysaX1Jtpzsu ztECDXL2pItAaOJsivJZly/rk0B4wHYYPvmUa1jUGa0Z+OwJvpetBaKyDEBFZkv4lyzp 9nM/m8441XN0PVegqjXMVvu5bl6oCdrkTwt1UOTUpuuw9tbAnyLJ5sugvjykleVpeIw3 thiP6IV5MZgrsfrkih/cx7pjnHdHXhqO7EzuHAVEJ7K/bibA3P8MdDrpry2YGp85WKEx IWTw== X-Received: by 10.181.13.42 with SMTP id ev10mr8289309wid.69.1424337693762; Thu, 19 Feb 2015 01:21:33 -0800 (PST) MIME-Version: 1.0 References: <03aa01d04bd3$f8330420$e8990c60$@php.net> Date: Thu, 19 Feb 2015 09:21:33 +0000 Message-ID: To: francois@php.net Cc: PHP internals Content-Type: multipart/alternative; boundary=f46d04388df146ed4d050f6d764d Subject: (off topic) Array to string conversion (Was: Re: [PHP-DEV] Scalar Type Hints v0.4) From: patrickallaert@php.net (Patrick ALLAERT) --f46d04388df146ed4d050f6d764d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Thu Feb 19 2015 at 00:38:25, Fran=C3=A7ois Laupretre = a =C3=A9crit : > This is definitely not the same case as generating a notice on array to > string (and why did you generate a notice instead of E_DEPRECATE, we woul= d > be rid of this crap now). > I haven't decided that without discussing [1] it. E_DEPRECATED is meant for something that may/will not work in the future and the plan was not to stop converting arrays as the string "Array" when it happens. Moreover, no other "bad" conversion used E_DEPRECATED and it would have been inconsistent IMO. Note that there is room for improvements considering that "weird" conversions are using one of E_NOTICE, E_WARNING, E_ERROR or E_RECOVERABLE_ERROR depending on the case. Feel free to propose something in this regard, I'm all for consistencies, provided that it gives a sufficient amount of BC. Regards, Patrick [1] http://marc.info/?l=3Dphp-internals&m=3D130709981705863 --f46d04388df146ed4d050f6d764d--