1--TEST--
2DBA LMDB opening matrix of combination
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7require_once __DIR__ . '/setup/setup_dba_tests.inc';
8check_skip('lmdb');
9?>
10--FILE--
11<?php
12require_once __DIR__ . '/setup/setup_dba_tests.inc';
13
14$handler = 'lmdb';
15run_creation_tests($handler);
16
17?>
18--CLEAN--
19<?php
20require_once __DIR__ . '/setup/setup_dba_tests.inc';
21$handler = 'lmdb';
22clean_creation_tests($handler);
23?>
24--EXPECTF--
25=== OPENING NON-EXISTING FILE ===
26Mode parameter is "rl":
27
28Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
29
30Warning: dba_open(): Driver initialization failed for handler: lmdb: No such file or directory in %s on line %d
31Opening DB failed
32Mode parameter is "rd":
33
34Warning: dba_open(): Driver initialization failed for handler: lmdb: No such file or directory in %s on line %d
35Opening DB failed
36Mode parameter is "r-":
37
38Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
39Opening DB failed
40Mode parameter is "r":
41
42Warning: dba_open(): Driver initialization failed for handler: lmdb: No such file or directory in %s on line %d
43Opening DB failed
44Mode parameter is "wl":
45
46Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
47This is a test insert
48Mode parameter is "wd":
49This is a test insert
50Mode parameter is "w-":
51
52Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
53Opening DB failed
54Mode parameter is "w":
55This is a test insert
56Mode parameter is "cl":
57
58Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
59This is a test insert
60Mode parameter is "cd":
61This is a test insert
62Mode parameter is "c-":
63
64Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
65Opening DB failed
66Mode parameter is "c":
67This is a test insert
68Mode parameter is "nl":
69
70Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
71This is a test insert
72Mode parameter is "nd":
73This is a test insert
74Mode parameter is "n-":
75
76Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
77Opening DB failed
78Mode parameter is "n":
79This is a test insert
80=== OPENING EXISTING DB FILE ===
81Mode parameter is "rl":
82
83Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
84
85Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
86Insertion failed
87Mode parameter is "rd":
88
89Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
90Insertion failed
91Mode parameter is "r-":
92
93Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
94Opening DB failed
95Mode parameter is "r":
96
97Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
98Insertion failed
99Mode parameter is "wl":
100
101Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
102This is a test insert
103Mode parameter is "wd":
104This is a test insert
105Mode parameter is "w-":
106
107Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
108Opening DB failed
109Mode parameter is "w":
110This is a test insert
111Mode parameter is "cl":
112
113Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
114This is a test insert
115Mode parameter is "cd":
116This is a test insert
117Mode parameter is "c-":
118
119Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
120Opening DB failed
121Mode parameter is "c":
122This is a test insert
123Mode parameter is "nl":
124
125Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
126This is a test insert
127Mode parameter is "nd":
128This is a test insert
129Mode parameter is "n-":
130
131Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
132Opening DB failed
133Mode parameter is "n":
134This is a test insert
135=== OPENING EXISTING RANDOM FILE ===
136Mode parameter is "rl":
137
138Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
139
140Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
141Opening DB failed
142Mode parameter is "rd":
143
144Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
145Opening DB failed
146Mode parameter is "r-":
147
148Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
149Opening DB failed
150Mode parameter is "r":
151
152Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
153Opening DB failed
154Mode parameter is "wl":
155
156Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
157
158Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
159Opening DB failed
160Mode parameter is "wd":
161
162Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
163Opening DB failed
164Mode parameter is "w-":
165
166Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
167Opening DB failed
168Mode parameter is "w":
169
170Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
171Opening DB failed
172Mode parameter is "cl":
173
174Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
175
176Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
177Opening DB failed
178Mode parameter is "cd":
179
180Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
181Opening DB failed
182Mode parameter is "c-":
183
184Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
185Opening DB failed
186Mode parameter is "c":
187
188Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
189Opening DB failed
190Mode parameter is "nl":
191
192Notice: dba_open(): Handler lmdb does locking internally in %s on line %d
193
194Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
195Opening DB failed
196Mode parameter is "nd":
197
198Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
199Opening DB failed
200Mode parameter is "n-":
201
202Warning: dba_open(): Locking cannot be disabled for handler lmdb in %s on line %d
203Opening DB failed
204Mode parameter is "n":
205
206Warning: dba_open(): Driver initialization failed for handler: lmdb: MDB_INVALID: File is not an LMDB file in %s on line %d
207Opening DB failed
208