PHP Sadness

Segfault with dba_*() functions

Calling dba_nextkey() on a dbm object before calling dba_firstkey() on it causes a segfault.

$ php -r '$db=dba_open("/tmp/test.db", "c", "db4"); dba_nextkey($db);'
Segmentation fault