We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b44d60 + 96ea8de commit fe13ee0Copy full SHA for fe13ee0
ext/dba/tests/bug71514.phpt
@@ -0,0 +1,28 @@
1
+--TEST--
2
+Bug #71514 (Bad dba_replace condition because of wrong API usage)
3
+--SKIPIF--
4
+<?php
5
+if (!extension_loaded('dba')) die('skip dba extension not available');
6
+if (!in_array('inifile', dba_handlers())) die('skip inifile handler not available');
7
+?>
8
+--FILE--
9
10
+$filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug71514.ini';
11
+
12
+$db = dba_open($filename, 'c', 'inifile');
13
14
+dba_insert('foo', 'value1', $db);
15
+dba_replace('foo', 'value2', $db);
16
+var_dump(dba_fetch('foo', $db));
17
18
+dba_close($db);
19
20
+==DONE==
21
+--EXPECT--
22
+string(6) "value2"
23
24
+--CLEAN--
25
26
27
+unlink($filename);
28
0 commit comments