Re: Should the engine be able to pass variables by reference of userland functions

From: Date: Wed, 19 Oct 2022 16:58:12 +0000
Subject: Re: Should the engine be able to pass variables by reference of userland functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-118849@lists.php.net to get a copy of this message
On Wed, Oct 19, 2022 at 7:37 AM Kamil Tekiela <tekiela246@gmail.com> wrote: > Hi, > > I am not sure if we should still support it. But I don't think it's > unthinkable to expect such feature from PHP. However, personally, I don't > find pass-by-ref that useful in general. The question is whether this > feature is used a lot in the wild. > > If we decide to drop support for this, it should probably go through a > deprecation phase. > > Regards, > Kamil > Pass by-ref is used a LOT in the wild, but I didn't interpret George's question as "should we remove pass by-ref from userland entirely". Surely the engine also supports pass by-ref somewhere in the VM as well as the place that was mentioned, it just does it in a different way? Jordan

« previous php.internals (#118849) next »