Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106339 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27468 invoked from network); 30 Jul 2019 11:35:58 -0000 Received: from unknown (HELO mail-oi1-f171.google.com) (209.85.167.171) by pb1.pair.com with SMTP; 30 Jul 2019 11:35:58 -0000 Received: by mail-oi1-f171.google.com with SMTP id t76so47409873oih.4 for ; Tue, 30 Jul 2019 02:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5xWWO0AYsmF096nPOkicUcOVCtVKNM2WoSHKT/ku4ow=; b=UCm/9mOR+JXreFleoDDfcUkD7qYK9SOHhpfbUF2K6NwzCaw2h8FWp32mVJFnH2DiNx SqNJXe4dTWIwYt34FDPFcF3CKdfvcpYko4mOGz7p3HaNtb/M2YcyhBrQGziVrtLht7XG hCmj4pxv2LJIp9lPB2q3YXcYa7iGbvahgl5WVBDv6fB5peBpH8cz+hIEeqLjqz6Uw+Zi gbWFia+poxgIL9sSV4r5niEzkzBKmu9f3hoaFVAirKLk+M1dAxqmtra/plfdF/FCViDG eYEdCVtha6MTDjW92BPnaUQhpJLgeMJv6ogtgFdePgeFw5JN6cYhdD1uhvVjL34otFnX P0HQ== 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; bh=5xWWO0AYsmF096nPOkicUcOVCtVKNM2WoSHKT/ku4ow=; b=SXXAorlyUfAN3RtsqHudiIkrCiaug7qVWhRfX5+nOBDCEXVttk4denkPpM5CHh2Pt5 tWXJN5QmIYtASTyb7kWMCVSFCZ+HEqq4DINhcKH18bkVzUkZfACEHgsKpr1CD2jS8zNR buUSSDSDbgISwnpOtppItBnf+N+S/EBpa3f+mDi9nAWC60gnVCKrlMj2r2a/4xzYloQ7 e2UBf+bwoD2xzqN5qjR0VkWxGP2maNYOj7pJeMNJRBydyvGgqqzB5XsNbQmev1WAVvtL Nl0XsdJ49pwi/WMaXXiuPzLnJ0/6clbOqFpdigrLtfGZ447DS6+YscO3rPLQNHGaCvfP 1fsw== X-Gm-Message-State: APjAAAVh7chntNbA2nXUnoG/Lv+KdjduQkBN3vcK5y6t+/rzCo28JHHx n8fjHjadmNXY2GxJYfZEV/ac2KMM002dUdsT/vk= X-Google-Smtp-Source: APXvYqxcHuroGL/c9Smi0TwONP3ktjFkJZuNbKFxjdagNbDaaEl2BQTbBWhdEmmeg/MfXib2RlWefqLDAx/TMwqnwJ0= X-Received: by 2002:aca:c64d:: with SMTP id w74mr58043224oif.137.1564477249482; Tue, 30 Jul 2019 02:00:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 30 Jul 2019 11:00:37 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000b6f4d2058ee23e92" Subject: Re: [PHP-DEV] [RFC] Explicit call-site send-by-ref syntax From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000b6f4d2058ee23e92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mar. 30 juil. 2019 =C3=A0 10:34, Rowan Collins = a =C3=A9crit : > On Tue, 30 Jul 2019 at 07:14, Nicolas Grekas > wrote: > > > I think enough time has passed since php4's call-by-ref for the syntax = to > > be > > reused now. I think it's unfair to call the RFC a reminiscent of > > call-by-ref BTW. > > > > > Firstly, please let's stop calling this a "PHP 4" feature. It was fully > supported right up to 5.2, deprecated in 5.3, and only removed in 5.4. > > Secondly, I completely disagree that it's unfair to compare the two. The > syntax being proposed in this RFC (& at both call-site and definition-sit= e) > was supported by versions prior to PHP 5.4. Those versions left it option= al > at either side, which was certainly a mistake; but it was perfectly > possible (and probably common) for coding standards to require it in both > locations. > > It might be a good idea to include a more thorough discussion of this > history in the RFC. > Call-time pass-by-reference is deprecated since PHP 4.3.0 and triggers a deprecation warning since then: https://3v4l.org/MFXsJ That's since Dec 2002. --000000000000b6f4d2058ee23e92--