#48240 [NEW]: DBA Segmentation fault dba_nextkey
| From: | VJTD3 at VJTD3 dot com | Date: | Tue, 12 May 2009 03:29:22 +0000 |
| Subject: | #48240 [NEW]: DBA Segmentation fault dba_nextkey | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-137192@lists.php.net to get a copy of this message | ||
From: VJTD3 at VJTD3 dot com
Operating system: linux redhat fedora 10
PHP version: 5.2.9
PHP Bug Type: DBM/DBA related
Bug description: DBA Segmentation fault dba_nextkey
Description:
------------
DBA Segmentation fault on function dba_nextkey without dba_firstkey before
dba_nextkey.
Reproduce code:
---------------
./configure --enable-dba --with-db4 --disable-libxml --disable-dom
--disable-simplexml --disable-libxml --disable-xml --disable-xmlreader
--disable-xmlwriter --without-pear
<?php
$dba = dba_open('database', 'r', 'db4');
$key = dba_nextkey($dba);
echo $key.':'.dba_fetch($key, $dba)."\n";
?>
db4-4.7.25-7
Expected result:
----------------
the first key by default or at least a error vs seg fault. (yes, i know
dba_firstkey should be before dba_nextkey however segfaults are probably
not a good reaction, defaulting to the first record or a error is
better...)
Actual result:
--------------
seg fault
--
Edit bug report at http://bugs.php.net/?id=48240&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48240&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48240&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48240&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48240&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48240&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48240&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48240&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48240&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48240&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48240&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48240&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48240&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48240&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48240&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48240&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48240&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48240&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48240&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48240&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48240&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48240&r=mysqlcfg