1--TEST--
2DBA INIFILE opening matrix of combination
3--EXTENSIONS--
4dba
5--SKIPIF--
6<?php
7require_once __DIR__ . '/setup/setup_dba_tests.inc';
8check_skip('inifile');
9?>
10--FILE--
11<?php
12require_once __DIR__ . '/setup/setup_dba_tests.inc';
13
14$handler = 'inifile';
15run_creation_tests($handler);
16
17?>
18--CLEAN--
19<?php
20require_once __DIR__ . '/setup/setup_dba_tests.inc';
21$handler = 'inifile';
22clean_creation_tests($handler);
23?>
24--EXPECTF--
25=== OPENING NON-EXISTING FILE ===
26Mode parameter is "rl":
27
28Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
29Opening DB failed
30Mode parameter is "rd":
31
32Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
33Opening DB failed
34Mode parameter is "r-":
35
36Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
37Opening DB failed
38Mode parameter is "r":
39
40Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
41Opening DB failed
42Mode parameter is "wl":
43
44Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
45Opening DB failed
46Mode parameter is "wd":
47
48Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
49Opening DB failed
50Mode parameter is "w-":
51
52Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
53Opening DB failed
54Mode parameter is "w":
55
56Warning: dba_open(inifile_not_existing.db): Failed to open stream: No such file or directory in %s on line %d
57Opening DB failed
58Mode parameter is "cl":
59This is a test insert
60Mode parameter is "cd":
61This is a test insert
62Mode parameter is "c-":
63This is a test insert
64Mode parameter is "c":
65This is a test insert
66Mode parameter is "nl":
67This is a test insert
68Mode parameter is "nd":
69This is a test insert
70Mode parameter is "n-":
71This is a test insert
72Mode parameter is "n":
73This is a test insert
74=== OPENING EXISTING DB FILE ===
75Mode parameter is "rl":
76
77Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
78Insertion failed
79Mode parameter is "rd":
80
81Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
82Insertion failed
83Mode parameter is "r-":
84
85Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
86Insertion failed
87Mode parameter is "r":
88
89Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
90Insertion failed
91Mode parameter is "wl":
92This is a test insert
93Mode parameter is "wd":
94This is a test insert
95Mode parameter is "w-":
96This is a test insert
97Mode parameter is "w":
98This is a test insert
99Mode parameter is "cl":
100This is a test insert
101Mode parameter is "cd":
102This is a test insert
103Mode parameter is "c-":
104This is a test insert
105Mode parameter is "c":
106This is a test insert
107Mode parameter is "nl":
108This is a test insert
109Mode parameter is "nd":
110This is a test insert
111Mode parameter is "n-":
112This is a test insert
113Mode parameter is "n":
114This is a test insert
115=== OPENING EXISTING RANDOM FILE ===
116Mode parameter is "rl":
117
118Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
119Insertion failed
120Mode parameter is "rd":
121
122Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
123Insertion failed
124Mode parameter is "r-":
125
126Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
127Insertion failed
128Mode parameter is "r":
129
130Warning: dba_insert(): Cannot perform a modification on a readonly database in %s on line %d
131Insertion failed
132Mode parameter is "wl":
133This is a test insert
134Mode parameter is "wd":
135This is a test insert
136Mode parameter is "w-":
137This is a test insert
138Mode parameter is "w":
139This is a test insert
140Mode parameter is "cl":
141This is a test insert
142Mode parameter is "cd":
143This is a test insert
144Mode parameter is "c-":
145This is a test insert
146Mode parameter is "c":
147This is a test insert
148Mode parameter is "nl":
149This is a test insert
150Mode parameter is "nd":
151This is a test insert
152Mode parameter is "n-":
153This is a test insert
154Mode parameter is "n":
155This is a test insert
156