Re: [PHP] Re: PHP5 and pass by reference bug.

2004-07-16 Thread Curt Zirzow
* Thus wrote Daevid Vincent: > Yeah, I get what references are. The point is that when it was on the user > to decide, they could do it. Now that PHP5 makes you put the & in the > function declaration instead of the passing parameter, you don't know what > the user is going to send. Therefore it re

Re: [PHP] Re: PHP5 and pass by reference bug.

2004-07-16 Thread Justin Patrin
But that function doesn't need to pass by reference. If you have a function that has a parameter that is passed by ref, it should always be a variable that is passed in. You should only be using pass by ref when the function changes the value and it simply doesn't make sense to change a "constant".

RE: [PHP] Re: PHP5 and pass by reference bug.

2004-07-16 Thread Daevid Vincent
Yeah, I get what references are. The point is that when it was on the user to decide, they could do it. Now that PHP5 makes you put the & in the function declaration instead of the passing parameter, you don't know what the user is going to send. Therefore it renders the & in the function declarati