Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106340 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34199 invoked from network); 30 Jul 2019 12:05:28 -0000 Received: from unknown (HELO mail-io1-f41.google.com) (209.85.166.41) by pb1.pair.com with SMTP; 30 Jul 2019 12:05:28 -0000 Received: by mail-io1-f41.google.com with SMTP id j5so122414130ioj.8 for ; Tue, 30 Jul 2019 02:30:19 -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=FByFUl080g1l64VLeHwCA//f2T7J6mtSIM7uFhL+nqE=; b=PgRGcefEQbmLKQQoZH8jt5lBxlgsvrCPgk5OBFWZ1j5qnL2389Jqajf4rn7v7cC9hw 6Bqn3t5Ss4xQjrQR2j9RAH4S05b5AHdrB1Ud/p1R3QhNIpEg7e1jveY2su8QM8lWFVSt C3akkvEhVuDfO/0Xb58eWuwQXGS5gxfoK08rClcJAWIoqWCV/Y5q/yErb40/5QVVT4xt mTub2QzwIL6eb9vHjVYa9kpQbKEAhOogL/Esw1NjAYLEPu4jrWAa4to/tyzj9tmXRAsc mJlLc0omh7KsV3n1uccwcITDmgK26z7XKSwQYcGi0zgwtEA/3cxFW897LzhIdTcc0rMn 3TdA== 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=FByFUl080g1l64VLeHwCA//f2T7J6mtSIM7uFhL+nqE=; b=MP93G6agMeEciXx3XPZ+zlzTIIilhLKFLkGgHKOU32g8GD6fUA2h72ZPgUYXEPu9wZ KKRfxa5RZ3DxC5f/mN0/I0t/ZP0rYImQQ4AUpb32PPp7OUjDNnoiAfXqmeiVpCjI9qKX mX4lt/Y/JzBz0WeYXwGhyylb6e6he/+CzHGIUKEcMV7gDDZaam1yYFq7yJN2b+BnQgLM 6PlGTpvzV+ea+W5syDBNvBynWHfEJ2x8ouT7Nu93dB0q3kL0LlID+L0oocDla/LuA7kz iErYwgiLr620VFa1N/HaKzxMkqukbnw1VL25aG3IwKWDMThIHcTXvjyU19TOc0nviF6q Iv4w== X-Gm-Message-State: APjAAAV6XlmZZPGMS69PCAJgHLV/UGbIhmcL51wkjqKiCu/HAf7RxT2I CRcVlgJkuNcHVksoUUl8I/5PNqIUfWH9RZaWNYQ= X-Google-Smtp-Source: APXvYqw3zGG2V6HCHEUDdmZIBWMF3mz6qaujJwRNItd+OKEYY87DblQEJ7d2Gumt8pP6O2QCZePnSyqny524mpEXeck= X-Received: by 2002:a5e:9304:: with SMTP id k4mr20125031iom.206.1564479019266; Tue, 30 Jul 2019 02:30:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 30 Jul 2019 10:30:08 +0100 Message-ID: To: Nicolas Grekas Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000033b6f0058ee2a857" Subject: Re: [PHP-DEV] [RFC] Explicit call-site send-by-ref syntax From: rowan.collins@gmail.com (Rowan Collins) --00000000000033b6f0058ee2a857 Content-Type: text/plain; charset="UTF-8" On Tue, 30 Jul 2019 at 10:00, Nicolas Grekas wrote: > 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. > It looks like the history is more complicated than either of us are remembering. I based my assertion on the migration notes for PHP 5.3 [1] which simply say: > Call-time pass-by-reference is now deprecated. However, that looks to have been the result of an RFC [2] which gave more background. According to that page, it's actually a PHP 3 feature, retained through PHP 4 and PHP 5, with an option to disable it (at the time of that RFC, there was still going to be a PHP 6). But since no warning was issued if you left the option in its default state, most users had no idea that it was considered deprecated, and carried on using it. So the first time many people heard that they needed to stop marking their call sites was PHP 5.3, released in 2009 and EOL in August 2014. [1] https://www.php.net/manual/en/migration53.deprecated.php [2] https://wiki.php.net/rfc/calltimebyref Regards, -- Rowan Collins [IMSoP] --00000000000033b6f0058ee2a857--