Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87777 invoked from network); 20 Jun 2018 16:01:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2018 16:01:41 -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.50 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:39467] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/86-32156-06A7A2B5 for ; Wed, 20 Jun 2018 12:01:38 -0400 Received: by mail-wm0-f50.google.com with SMTP id p11-v6so428632wmc.4 for ; Wed, 20 Jun 2018 09:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Itb8Z4B1GLiJ4QIzuWhhzcrK17DkNzkWHiouDwm2TMk=; b=EXH8Z1EDoxvLEU01pOBYlG0hyHwq1IMmKgi2yXq1po1ZMb/XWAwTivW3TvUDfxJryb RwK2MZWZO0xIz2KhNSxPFSDjbmbm3uDeOXDByagjbq2hxwgMqnGF8GbQLE7ap54xClHH V3puN8MAaLh6oihmGXCK9K6ZAtUrqQ+q3vyJIi9DLR1cWOH6EZld1Vt11MLrhOC0DCy4 E7/Y88Cc5Bs60mCepxGIazeG4s9Q7Mx1qQqFANrwP+XEVFpCToJe1SKar6YjDGllk8HR 7fUkcowmZsL5vR4WFhoRtnRTjZtfr+LfV+Df6tR2FHDYyLaKQU8FiVqGgnpWxeCo5jOE YX8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Itb8Z4B1GLiJ4QIzuWhhzcrK17DkNzkWHiouDwm2TMk=; b=p40jKVtRpoNsB+gv/CEiT2/fk1nUpoj3N7eh+14WShLlD9kMau3elrlGcKIFCO/tiM 3NItXKxkKt4SqVbveTh2VnIkPdBgYy3d4IfEDGEDFY8Wrdb/ISEtdZDhLhOMuybQIuyC n7RxR9llNAtUIAqcVsTh5C99zv0Y0dBZaz9BXMD/4uH7E+JrK/GzbvEm4B0xEC1Wimvp G7OEX0khKVxKNOr2TIJQB3l4bSKM0NAOm1mTxPst8BCr8EX5WCTrogIVx7q0DEEgqXgJ rG7VYSWRrd2A3Y5dWnUIphikDG9Kf1pz0CzDBq6gG5SttgkKwixqC/w+BwSgg9rqqBs9 ZXaA== X-Gm-Message-State: APt69E1SQN/ey1MQRtM36uAvNoE/RJRJma9hDbM9r5kQzL+zkZbuBtBo N3aAMuKJlCOC6nB78dOMVcbUgy4bqCVM6NvShyk= X-Google-Smtp-Source: ADUXVKIzEpBR0wwNXUiEq0sn5wItpd1iVW/+vgkaAe87K5hI2L8QVud4BDYkQZftozpiDR9lxz4HHkEPsCowRXJy3BQ= X-Received: by 2002:a50:d08e:: with SMTP id v14-v6mr18682294edd.182.1529510493902; Wed, 20 Jun 2018 09:01:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:8d55:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 09:01:33 -0700 (PDT) In-Reply-To: References: <75db877c-ef0b-7d3b-48a8-9879d90352b0@web.de> <76e4744f-6722-ee49-0325-e4433236f1b1@web.de> <73ac8914-8c9f-e74b-a4f5-f6e39cd96f8f@gmx.de> <3242366.BL9MUqXe46@vulcan> <154ba124-2915-ca36-fa39-5df6726d3b5a@web.de> Date: Wed, 20 Jun 2018 17:01:33 +0100 Message-ID: To: Levi Morrison Cc: enno.woortmann@web.de, internals Content-Type: multipart/alternative; boundary="000000000000ab5b3b056f14e9d9" Subject: Re: [PHP-DEV] [RFC][Under Discussion] Add functions array_key_first()and array_key_last() From: rowan.collins@gmail.com (Rowan Collins) --000000000000ab5b3b056f14e9d9 Content-Type: text/plain; charset="UTF-8" On 20 June 2018 at 15:29, Levi Morrison wrote: > > Ah, OK, you learn something every day! For anyone else like me who was > unaware of this, list() apparently silently accepts any non-array value on > the right of the assignment, assigns all variables in the list() to null, > and evaluates to the assigned (but otherwise unused) value. So > $x=list($a,$b)=42; will set $a and $b to NULL, and $x to 42, without any > notices. > > This is changing as per this RFC: > https://wiki.php.net/rfc/notice-for-non-valid-array-container. The > `null` case is kept. > Not according to the RFC: > Per discussion on the PR I have limited this RFC to not raise warnings when setting any value by use of list(). It says nothing about treating NULL specially, it just implies list() will be out of scope of the RFC completely. Regards, -- Rowan Collins [IMSoP] --000000000000ab5b3b056f14e9d9--