Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102327 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82447 invoked from network); 20 Jun 2018 14:30:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2018 14:30:01 -0000 Authentication-Results: pb1.pair.com header.from=levim@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-lf0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:35351] helo=mail-lf0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/06-32156-5E46A2B5 for ; Wed, 20 Jun 2018 10:29:59 -0400 Received: by mail-lf0-f47.google.com with SMTP id i15-v6so5314878lfc.2 for ; Wed, 20 Jun 2018 07:29:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SJINPOCFfWwK/09i+vC0qDw4JZdRzoy3vn5iBY9gqJw=; b=O37ZBDKp+g3fKw91++EZzysf0vKPFsvafjWJjLBfhQaB8zz6nYaJgHcHLLJ+lS+L/E iVvc4imCRtZETw7yyuY69vpmaKTFqggBNdlAVmaRyLxv8QLXAWivnnacrC65exj6+uAK 0612gLUmowYU5/M/2YcJ6TK9Dvww+UJo0rrIuNj9rf8yAJnC0jJH/tdrlg/lWxf7rduJ gcm24ivRhrPDdeQWyMgo6JgUTst/B9egNvnxe9XN+g0RJ4qHuOW35Yhvg4LzM5kpeUSO jomrfJDroKW+MYfqsjv48FcZsdRirFQegruHvc92aQTWm6LrA+/iD7am/TYngFOVpbKB Lbog== X-Gm-Message-State: APt69E27NLrz++RDfeYOkRcr111wWjOgFYHu7376bbQccXfG71KOI2pE detJJT21SwEYKx7COBgZ0UvGpZ5sS3PIlJiU0AU= X-Google-Smtp-Source: ADUXVKJIUX3KCSbw6hCFiu5c4YaZ5ZJB78Yl2c7vMjheZMgZ9fgS8xKVzEq9NSAKNi4bZnIY9yL6ix97LKD7+Ug9sb4= X-Received: by 2002:a2e:889a:: with SMTP id k26-v6mr14091274lji.54.1529504994620; Wed, 20 Jun 2018 07:29:54 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: Date: Wed, 20 Jun 2018 08:29:42 -0600 Message-ID: To: Rowan Collins Cc: enno.woortmann@web.de, internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Under Discussion] Add functions array_key_first()and array_key_last() From: levim@php.net (Levi Morrison) > Ah, OK, you learn something every day! For anyone else like me who was un= aware of this, list() apparently silently accepts any non-array value on th= e right of the assignment, assigns all variables in the list() to null, and= evaluates to the assigned (but otherwise unused) value. So $x=3Dlist($a,$b= )=3D42; 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.