php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1938 tests/dba.php from php3 fails with php4
Submitted: 1999-08-01 09:58 UTC Modified: 1999-08-17 08:23 UTC
From: danny dot heijl at cevi dot be Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 4.0 Latest CVS (01/08/1999) OS: RH 5.2 Linux
Private report: No CVE-ID: None
 [1999-08-01 09:58 UTC] danny dot heijl at cevi dot be
The php3 test script "tests/dba.php" runs fine with gdbm,
but with php4 it fails : 

.... snip ...
testing with gdbm
replacing
optimizing
fetching
traversing
db broken: 922 entries, 1000 expected

This is the output of the same script with php3 :

... snip ...
testing with gdbm
replacing
optimizing
fetching
traversing
testing existence
deleting
traversing again
passed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-17 08:23 UTC] danny at cvs dot php dot net
In php3 the value 0 was treated as a valid key.
This is no longer the case in php4.
The test loop variable started from 0 and was used as the key.
Changing the test loops to start from 1 fixes the problem.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 16:01:23 2020 UTC