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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 37 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC