Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41525 invoked from network); 28 Dec 2016 00:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2016 00:47:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave+php@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.217.170 mail-ua0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:36053] helo=mail-ua0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/10-04761-BBB03685 for ; Tue, 27 Dec 2016 19:47:55 -0500 Received: by mail-ua0-f170.google.com with SMTP id 88so190410293uaq.3 for ; Tue, 27 Dec 2016 16:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=mMV0FyduVSpHA8KuULBJ5sXE+VF4iygmPqJpnDv58H0=; b=u6anH34pthy4D1r8QdlBALzjc3S6ZSwBwldzV3ea1PKEZW90ugzBsNz4JkzJC+ugLa dBjWZVl2XurLfkg5Uoccb4Pfs5pl+VMWhIkgT1X1i87HJs3agkU7T4SQ5k9BdpRfIIH2 CdDGi6G58H06B6Sgjd28YSS0YWstoE8HPHbkzHBW56oKXcquRYy/tqnbOobMozMkuOLg FFZ6ytsCNMrM2BMkJgl2UaFc/cRHejKpyt60INKbgkvl+d7OAxKst44INbQUUpngvqI+ N3TfnmnLDfuaiVjjyO3Eec9p1n2BqwXPEfTO0LvG4h1UmSUxePEGw9Bb+UfoPtszi6NI SSwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mMV0FyduVSpHA8KuULBJ5sXE+VF4iygmPqJpnDv58H0=; b=optU7nsWngCKojfPEWqMvQBtt5Ulzu5n3MFm2nDYin1NdjaRyJDLUfN4BaTk3Rzs+h uGXlkPa09fgBrTN+lBkigC7hb3nHPpa3f3aOkBvxlG/bPbQEg12KW7ALWmKrsFxcBnnj lsz26v019vRtcPoug75CUQ3c7fAqfEGiC2LYV+m7444nW3OgAR7CmLA6bIthI+YHdbTy rOaEE5SgO8ca23TFVqIpDSeG7+ivMey8LnXtqeN9Puj1vkkUvCXYVCwaWq2JKDPbEmYB R6jDHQlEOgY0kIHaT0E1izQgW1wxwl9DdILlOoP9MykHuHAjVgjVXEla9qzta1DaoF5E OIuA== X-Gm-Message-State: AIkVDXKWxcBA2HWX6cg9WkaT9t0QELHL8veJ/qOZ/ixVLteua8RYzX9y0YGjv5Z+Y7GaiclS/kFw4oEZsjjejA== X-Received: by 10.176.69.144 with SMTP id u16mr26349297uau.127.1482886072023; Tue, 27 Dec 2016 16:47:52 -0800 (PST) MIME-Version: 1.0 Date: Wed, 28 Dec 2016 00:47:41 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=94eb2c11c16090f2b10544ad51f4 Subject: Bug 63744 - references in list() From: dave+php@mudsite.com (David Walker) --94eb2c11c16090f2b10544ad51f4 Content-Type: text/plain; charset=UTF-8 Hi all, I stumbled upon this bug report (read: feature request) today and took a swing at it thinking it couldn't be that overly complex. But then again it was requested way back in the PHP4 era, so I figured there has to be some reason why it hasn't been done before. Be it complex in cases I'm not thinking of, or, has been deemed something the language doesn't want to support. I was able to, pretty quickly, get a bunch of test cases seemingly working. Both list-assign from an array container, and that of an object implementing arrayaccess. I'd imagine a change of this kind would probably warrant an RFC, but before writing it out, and fleshing out the change I just wanted to check if there were any reasons behind it not being done. -- Dave --94eb2c11c16090f2b10544ad51f4--