summaryrefslogtreecommitdiff
path: root/ext/dba/tests
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-05-13 02:14:53 +0000
committerFelipe Pena <felipe@php.net>2009-05-13 02:14:53 +0000
commit539b7a2154b9db710447ef0696c80843d303584b (patch)
tree8178c3c05a575aaf75da147e115b13ca2ea19d61 /ext/dba/tests
parentc25b0a281724d9a211432844aaed58dbe76997bb (diff)
downloadphp-git-539b7a2154b9db710447ef0696c80843d303584b.tar.gz
- MFH: Fixed bug #48240 (DBA Segmentation fault dba_nextkey)
Diffstat (limited to 'ext/dba/tests')
-rw-r--r--ext/dba/tests/bug48240.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/dba/tests/bug48240.phpt b/ext/dba/tests/bug48240.phpt
new file mode 100644
index 0000000000..72dc439564
--- /dev/null
+++ b/ext/dba/tests/bug48240.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #48240 (DBA Segmentation fault dba_nextkey)
+--SKIPIF--
+<?php
+ $handler = 'db4';
+ require_once('skipif.inc');
+?>
+--FILE--
+<?php
+
+$handler = 'db4';
+require_once('test.inc');
+
+$db = dba_open($db_filename, 'c', 'db4');
+
+var_dump(dba_nextkey($db));
+
+dba_close($db);
+unlink($db_filename);
+
+?>
+===DONE===
+--EXPECT--
+bool(false)
+===DONE===