[Phpmyadmin-devel] [Phpmyadmin-svn] SF.net SVN: phpmyadmin:

Marc Delisle Marc.Delisle at cegepsherbrooke.qc.ca
Tue Jun 19 14:09:11 CEST 2007


Sebastian Mendel a écrit :
> lem9 at users.sourceforge.net schrieb:
>> Revision: 10448
>>           http://svn.sourceforge.net/phpmyadmin/?rev=10448&view=rev
>> Author:   lem9
>> Date:     2007-06-18 09:36:41 -0700 (Mon, 18 Jun 2007)
>>
>> Log Message:
>> -----------
>> do not use getItems() in this case
>>
>> [...]
>> -        foreach ($this->getItems() as $key => $db) {
>> +        foreach ($this->items as $key => $db) {
> 
> what is the favor doing this?
> i do not think that you will save any memory or time
> (PHP copies variable content only on change in one of the variable copies)
> 
> also,
> possible we could use getItems($count, $offset = 0)
> 

I'm using $this->items because in some cases, the count and offset are 
not initialized.

Marc




More information about the Developers mailing list