Re: cvs: pear(MDB_1) /MDB/MDB ibase.php
| From: | Mirco 'meebey' Bauer | Date: | Wed, 01 Oct 2003 08:37:52 +0000 |
| Subject: | Re: cvs: pear(MDB_1) /MDB/MDB ibase.php | ||
| References: | 1 2 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-13200@lists.php.net to get a copy of this message | ||
I forgot to mention that you missed some NULL constants which should be
null (lowercase) according to PEAR.
Mirco
On Wed, 2003-10-01 at 10:35, Mirco 'meebey' Bauer wrote:
> This commit has also big changes in important functions like fetchRow()
> but the CVS log just says CS fixes.
>
> Here is what I found that looks buggy to me: (which is according to
> changelog just CS fix)
> - function fetchRow($result, $row)
> - {
> - //should I do this? Why $row is NULL by default and not 0?
> - if(is_null($row)) {
> - $row = 0;
> + if (is_null($rownum)) {
> + $rownum = $this->highest_fetched_row[$result_value] + 1;
> }
> - $result_value = intval($result);
> ... (more changes, but not important for my point)
>
> the 2. parameter is called $row and you check for is_null($rownum) which
> is always true because its an undefined variable.
>
> You should use a proper error reporting level in your php.ini, then you
> find bugs like this very easy...
>
> On Wed, 2003-10-01 at 01:49, Lorenzo Alberton wrote:
> > quipo Tue Sep 30 19:49:46 2003 EDT
> >
> > Modified files: (Branch: MDB_1)
> > /pear/MDB/MDB ibase.php
> > Log:
> > mostly CS (cosmetic) fixes
> >
> >
> > ______________________________________________________________________
> > --
> > PEAR CVS Mailing List (http://pear.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php