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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Oct 18 02:01:27 2024 UTC