|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-23 14:51 UTC] tony2001@php.net
[2007-01-23 20:38 UTC] stuhood at webmail dot us
[2007-01-23 21:05 UTC] tony2001@php.net
[2007-01-24 08:26 UTC] judas dot iscariote at gmail dot com
[2007-01-24 15:34 UTC] stuhood at webmail dot us
[2007-01-24 15:38 UTC] tony2001@php.net
[2007-01-25 14:14 UTC] stuhood at webmail dot us
[2007-01-25 14:43 UTC] tony2001@php.net
[2007-02-02 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 09:00:02 2025 UTC |
Description: ------------ This bug affects 5.1.4, 5.2.0 and latest CVS on this system, compiled with "--enable-dba=shared --with-db4=/usr/local/BerkeleyDB.4.5/" (or 4.3), and with the dba shared extension in my php.ini file. httpd version is Apache/2.0.46. `php run-tests.php ext/dba` runs without errors. Permissions: -rw-r--r-- thedatabase.db Reproduce code: --------------- The following script works correctly from the command line, but causes httpd processes to segfault. With a dba_exists call instead of firstkey, it works fine, so I'm fairly certain its a problem with firstkey: <?php $db = dba_open("thedatabase.db", "r", "db4"); $key = dba_firstkey ($db); if($db) print "Success: ".$key."\n"; dba_close($db); ?> Expected result: ---------------- Should see Success: (first key) Actual result: -------------- httpd child segfaults (11) and displays a 500 error.