cvs: qaweb /regtests/test/suite/bin testdbaseaddrec.php
| From: | Joey Smith | Date: | Mon, 21 Aug 2000 22:33:02 +0000 |
| Subject: | cvs: qaweb /regtests/test/suite/bin testdbaseaddrec.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-913@lists.php.net to get a copy of this message | ||
joey Mon Aug 21 15:33:02 2000 EDT
Modified files:
/qaweb/regtests/test/suite/bin testdbaseaddrec.php
Log:
Use dbase_numrecords to decide how many results to pull...
Eventually, this test will probably comprise all of the current
dbase functions.
Index: qaweb/regtests/test/suite/bin/testdbaseaddrec.php
diff -u qaweb/regtests/test/suite/bin/testdbaseaddrec.php:1.1
qaweb/regtests/test/suite/bin/testdbaseaddrec.php:1.2
--- qaweb/regtests/test/suite/bin/testdbaseaddrec.php:1.1 Mon Aug 21 15:10:10 2000
+++ qaweb/regtests/test/suite/bin/testdbaseaddrec.php Mon Aug 21 15:33:02 2000
@@ -43,7 +43,7 @@
$dbf_c = dbase_open($dbname, 2);
-for ($i = 1; $i <= 4; $i++)
+for ($i = 1; $i <= dbase_numrecords($dbf_c); $i++)
{
$dbf_row[$i] = dbase_get_record_with_names($dbf_c, $i);
}