From:             seanius at debian dot org
Operating system: Debian (and others)
PHP version:      5.3.1
PHP Bug Type:     DBM/DBA related
Bug description:  will not build/work with libdb4.8

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


-- 
Edit bug report at http://bugs.php.net/?id=51086&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51086&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51086&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51086&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51086&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51086&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51086&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51086&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51086&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51086&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51086&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51086&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51086&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51086&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51086&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51086&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51086&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51086&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51086&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51086&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51086&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51086&r=mysqlcfg

Reply via email to