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