Well, I just tried disabling the new setting in my project, and it broke literally everything that had to do with arrays, lol.
So let me get this straight - whenever I pass an array into a function, the old behavior was to silently make a copy of the array - and the new behavior is to just pass a reference to the original array?
That seems... weird to me. Because that's not how regular variables work when you do the same.
The solution then (aside from just leaving the old behavior on) is to use array_copy() in all of my array-handling scripts. But then I need to do a length check on top of all that. Is there a simpler way to copy arrays than that now?
So let me get this straight - whenever I pass an array into a function, the old behavior was to silently make a copy of the array - and the new behavior is to just pass a reference to the original array?
That seems... weird to me. Because that's not how regular variables work when you do the same.
The solution then (aside from just leaving the old behavior on) is to use array_copy() in all of my array-handling scripts. But then I need to do a length check on top of all that. Is there a simpler way to copy arrays than that now?
Last edited: