ID:               45266
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         DBM/DBA related
 Operating System: Linux
 PHP Version:      5.3CVS-2008-06-14 (CVS)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-06-14 00:46:35] [EMAIL PROTECTED]

Description:
------------
In ext/dba/dba_db4.c, the DB_INIT_LOCK bit is set in the gmode flag
passed into dbp->open().  This is not a valid option for opening a
BDB4 DB.  The DBA code may have accidently worked against earlier
versions of BDB because the integer value of the option previously
matched a valid value.

Tested with BDB 4.7.25

For debugging, note in BDB's db-4.7.25/db/db_iface.c the OKFLAGS macro
doesn't include DB_INIT_LOCK.



Reproduce code:
---------------
<?php
$filename = "/tmp/dba1.db";
$d = dba_open($filename, "c", "db4");
?>

Expected result:
----------------
No error

Actual result:
--------------
Warning: dba_open(/tmp/dba1.db,c): Driver initialization failed for
handler: db4: Invalid argument in dba1.php on line 5



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45266&edit=1

Reply via email to