Re: PHP 4.0 Bug #4269: Limit on records added with dba_insert
| From: | Sascha Schumann | Date: | Sun, 30 Apr 2000 03:43:12 +0000 |
| Subject: | Re: PHP 4.0 Bug #4269: Limit on records added with dba_insert | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18298@lists.php.net to get a copy of this message | ||
On Fri, Apr 28, 2000 at 10:00:11AM -0000, alex.dyas@wcom.co.uk wrote:
> From: alex.dyas@wcom.co.uk
> Operating system: FreeBSD 3.3 RELEASE
> PHP version: 4.0 Beta 4 Patch Level 1
> PHP Bug Type: DBM/DBA related
> Bug description: Limit on records added with dba_insert
>
> The script below should add 500 records to the GDBM database. However, it only adds 490 and if
> run a second time will not add any more records. If the loop counter is increased to say 1000 then
> only 993 records are added, 2000 -> 1997 etc. Very odd.
>
> ** SCRIPT:
> <?
> // ** Write to database **
> $dbh = dba_open("./test.dbm","w","gdbm");
> for($x=0;$x<500;$x++)
Let this loop start at 1..
> while($key)
..or otherwise this loop might stop too early. Also make sure to
use
while($key != false)
- Sascha