php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36436 DBA problem with Berkeley DB4
Submitted: 2006-02-17 23:42 UTC Modified: 2006-02-18 18:11 UTC
From: nobody at example dot org Assigned: helly
Status: Closed Package: DBM/DBA related
PHP Version: 5.1.2 OS: *
Private report: No CVE-ID:
 [2006-02-17 23:42 UTC] nobody at example dot org
Description:
------------
Berkeley DB 4.2.52 fails with error when using PHP's dba_exists() and dba_fetch() methods. Other dba handlers work fine.

Reproducable: always 



Reproduce code:
---------------
<?php

$db = dba_popen('test.db4', 'c', 'db4');
dba_insert('b0rk', 'b0rk', $db);
echo dba_fetch('b0rk', $db),"\r\n";

?>

Expected result:
----------------
b0rk

Actual result:
--------------
Notice: "DB_THREAD mandates memory allocation flag on DBT data..." 

Error string is from bdb.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-18 18:11 UTC] helly@php.net
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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 19:01:53 2014 UTC