On Mon, Jul 29, 2019, 10:40 Claude Pache <claude.pa...@gmail.com> wrote:

>
>
> > Le 28 juil. 2019 à 21:12, Marco Pivetta <ocram...@gmail.com> a écrit :
> >
> > On Sun, Jul 28, 2019 at 9:06 PM Stanislav Malyshev <smalys...@gmail.com>
> > wrote:
> >
> >> Hi!
> >>
> >>> Nah, by-ref is pretty much avoided in OSS packages, but we can surely
> >>> survey the ecosystem to verify this.
> >>
> >> I literally work with code that uses references every day. So may be you
> >> haven't encountered it but the attitude of "nah, never happens" I think
> >> is a bit misplaced.
> >> Also please remember not all PHP code is latest composer packages. In
> >> fact, most of it isn't.
> >>
> >
> > I do work with code like that: the teams maintaining these codebases are
> > actively removing by-ref calls when they encounter them.
> >
> > Marco Pivetta
>
> Do your teams actively remove direct calls to array_push() and
> array_multisort()? In any case, I’m sure that most PHP developers don’t.
>

Yes: usually replaced by `[]` or wrappers of those functions that
de-reference the variables, so that no references are used.

>

Reply via email to