On Tue, 30 Jul 2019 at 10:00, Nicolas Grekas <nicolas.grekas+...@gmail.com> 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]