Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77649 invoked from network); 10 Feb 2016 14:34:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2016 14:34:59 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.175 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.175 mail-yk0-f175.google.com Received: from [209.85.160.175] ([209.85.160.175:34782] helo=mail-yk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/C4-12072-09A4BB65 for ; Wed, 10 Feb 2016 09:34:58 -0500 Received: by mail-yk0-f175.google.com with SMTP id u9so8170918ykd.1 for ; Wed, 10 Feb 2016 06:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Ceyxvz03kIyP1ITkBDzrUpAmbK2qOYRoJ/KKxsdMw1U=; b=fVPZ05hm5z5QjbnkxOyz2Rbq1bGkH2AHzVdLs+itAjbGhh778COvp6bmAONWCGV6fj BLrtPabcBKof3fE6J4iiBvcdzDVXbb5iwZCcRGKCB2Z+j3H8Y+5207m9E7a7qbR7lj20 GZiTZ/x48M+gRk9ZXcBd/hfrcVlXRSx8hU9xRRBwtbhnvpdJSgn3pSIiRYLZkzuDHkX6 go1n2vdF18DpkbU3BhTTWR0em/24MkqNbnflVOKjPcFEucBUvQ6wFTGY02Ope1nOs1TK ZPrTPo4S+AH3PXvIRUpxuA+BbC/3upnRN/suNRN0danlZFXDrV3RItDyQwKypqfXzquZ fR8A== 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 :content-transfer-encoding; bh=Ceyxvz03kIyP1ITkBDzrUpAmbK2qOYRoJ/KKxsdMw1U=; b=PLQPjc9cr8b4+Qbq2XPtaVtElcW8PCEgpTwGGxAw4U8dBBRgukYkA5aEqQ+uj0MuWP axUgHEk3wscGSBG4F0MsFW3KhzAyEA46+chnn6NQo4oaKPx4vthhZq3JQaBre0giQJAV RY5zZG1rmjPp7A9Flrm1v0vVDDe7blkNIIDNWak2OQ9zA0twSOtDTP7sMjWWRz/6+jBB bCd5g8erkMY9kbTGT5bmbYQ9ksM66PyFYPsBs4nkix42p21J3Tk8jxklq9F5uhp++ytr sQi6gaYuIwyrc5xTXLRlGBb+qITDkiUa3cbIbZGD6rWPevCCHhEUjw/dLe6Mul5I9Gy8 Uucg== X-Gm-Message-State: AG10YORqqCxLgFXFVEQwTZIduwj2CDQAdQRXgNdVCzg1pHKuZW8nuFaqViq/hFpNDdTheNTYBtse6lKUMT9Y/g== MIME-Version: 1.0 X-Received: by 10.37.230.210 with SMTP id d201mr10986069ybh.134.1455114894116; Wed, 10 Feb 2016 06:34:54 -0800 (PST) Received: by 10.37.83.131 with HTTP; Wed, 10 Feb 2016 06:34:54 -0800 (PST) X-Originating-IP: [2.98.210.226] In-Reply-To: References: <56A3A01F.1020500@php.net> <56AE8735.4070901@gmail.com> <56AFC8CC.6040201@gmail.com> <56B6680F.6070804@gmail.com> <56B8AFC1.7040100@php.net> Date: Wed, 10 Feb 2016 14:34:54 +0000 Message-ID: To: Yasuo Ohgaki Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Generalize support of negative string offsets From: danack@basereality.com (Dan Ackroyd) On 10 February 2016 at 07:00, Yasuo Ohgaki wrote: > Additional comment on this > > php > $v=3Darray(1,2,3); > php > $v .=3D 'abc'; > > I think $v .=3D 'abc' should not destroy array variable. It's minor issue= , though. That is the current behaviour. Trying to slip "bug fixes" into RFCs is a very bad pattern to follow. If this should be fixed, it should be done as part of a separate RFC. > This insane string assignment raises E_NOTICE. PHP may be better to > raise E_WARNING for this kind of invalid assignments just like Fran=C3=A7ois already wrote an RFC for this https://wiki.php.net/rfc/array-to-string that passed, but apparently could not be implemented safely, which is a shame. That RFC needs to be resurrected imo. But again, changing that behaviour needs to be separate, and not part of this RFC. cheers Dan