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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danny dot heijl at cevi dot be
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 06 04:01:30 2024 UTC