will not work with libdb4.8
| Bug #51086 | will not work with libdb4.8 | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-02-18 23:41 UTC | Modified: | 2010-03-08 20:40 UTC | ||
| From: | seanius at debian dot org | Assigned: | sixd (profile) | ||
| Status: | Closed | Package: | DBM/DBA related | ||
| PHP Version: | 5.3, 6 (2010-02-19) | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2010-02-18 23:41 UTC] seanius at debian dot org
Description: ------------ while the configure changes needed to get php to build against libdb4.8 are pretty trivial, there's unfortunately a significant behavior change in how libdb's db->open() reacts when called with DB_CREATE|DB_TRUNCATE on an existing zero-sized file. this also breaks other apps, such as sendmail or nvi, which use similar "locking hacks" (i'm guessing that's what's going on here) on db files. it's possible that this might be fixed in a later release of libdb4.8 in which case it might be good to refuse building against earlier versions of 4.8 when the fix does come out. in the meantime i'm wondering about the options for someone who can't back out to 4.7 :/ for reference: similar bug in sendmail: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565242 similar bug in nvi (gentoo dev "I'm not sure if this is a bug or a feature"): http://bugs.gentoo.org/286352 Reproduce code: --------------- run ext/dba/tests/bug36436.phpt, for example, or probably any other db4 related code after building against 4.8. Expected result: ---------------- PASS Actual result: -------------- FAIL, with error messages like: PHP Notice: dba_popen(): fop_read_meta: /home/sean/debian/php/ext/dba/tests/test0.dbm: unexpected file type or format in /home/sean/debian/php/ext/dba/tests/bug36436.php on line 6
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-02-18 23:46 UTC] seanius at debian dot org
[2010-02-19 08:43 UTC] seanius at debian dot org
[2010-02-19 08:45 UTC] jani@php.net
[2010-02-19 09:00 UTC] seanius at debian dot org
[2010-02-19 09:05 UTC] seanius at debian dot org
[2010-03-02 17:12 UTC] sixd@php.net
[2010-03-05 07:54 UTC] sixd@php.net
-Status: Assigned +Status: Closed
[2010-03-05 07:54 UTC] sixd@php.net
[2010-03-06 11:46 UTC] seanius at debian dot org
[2010-03-08 20:40 UTC] sixd@php.net