Re: Re: Liveuser_Admin: listing users alphabetically

From: Date: Tue, 06 Sep 2005 13:15:44 +0000
Subject: Re: Re: Liveuser_Admin: listing users alphabetically
References: 1 2 3 4 5 6 7 8  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20814@lists.php.net to get a copy of this message
Jeroen Houben wrote:
Well I'm sure it should, but before it enters that function $orders is an array (as specified in my previous post) and when the findTables() function is excecuted $orders is an empty array.
please open a bug report then
Since you pass $orders by reference, it is possible to change it's value. I don't know exactly what's going on but if I remove the & from the method signature, it works fine. I don't really understand the passing by reference bit here anyway, $orders will never be a really huge array that will benefit from not being copied (speedwise).
this is not a performance optimization. as a matter of fact its a performance degration to pass by reference. as i said the method handles modifying the array keys to the alias'ed and table prefixed representation. however i think i am starting to see the problem in the code. regards, Lukas

« previous php.pear.general (#20814) next »