diff options
Diffstat (limited to 'ext/dba/tests/bug49125.phpt')
| -rw-r--r-- | ext/dba/tests/bug49125.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/dba/tests/bug49125.phpt b/ext/dba/tests/bug49125.phpt new file mode 100644 index 0000000..e06495a --- /dev/null +++ b/ext/dba/tests/bug49125.phpt @@ -0,0 +1,30 @@ +--TEST-- +Bug #49125 (Error in dba_exists C code) +--SKIPIF-- +<?php + $handler = 'db4'; + require_once(dirname(__FILE__) .'/skipif.inc'); +?> +--FILE-- +<?php + +error_reporting(E_ALL); + +$handler = 'db4'; +require_once(dirname(__FILE__) .'/test.inc'); + +$db = dba_popen($db_filename, 'c', 'db4'); + +dba_insert('foo', 'foo', $db); + +var_dump(dba_exists('foo', $db)); + +dba_close($db); + +?> +--CLEAN-- +<?php + require(dirname(__FILE__) .'/clean.inc'); +?> +--EXPECT-- +bool(true) |
