Re: Pager bug (BC break ?!)

From: Date: Sun, 30 Nov 2003 17:49:38 +0000
Subject: Re: Pager bug (BC break ?!)
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9225@lists.php.net to get a copy of this message
Hi Maxim, in this case it was a bug in Pager_Jumping. BC should not be broken between v.1.x and v.2, I did my best to maintain BC while adding a lot of new features. Please check-out the new files from CVS or wait next release, that will address this issue. Thank you for your report. Best regards, Lorenzo On Sun, 30 Nov 2003 04:51:13 +0300, Maxim V. Panasiuk wrote: > Hi, > > Excuse me if I missed some announcements but the behavior of latest > Pager (2.0) seems strange to me. > > From the following code I expect to get "1, 0" but Pager returns "- > 9, 0" BC break? > > <code> > require_once 'Pager/Pager.php'; > > $params['totalItems'] = 0; > $params['perPage'] = 10; > $pager =& new Pager($params); > list($from, $to) = $pager->getOffsetByPageId(); > > echo "$from, $to"; > </code> > > -- > Best regards, > Maxim mailto:fretnoiz@yandex.ru

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