@@ -26,23 +26,23 @@ echo dba_fetch("key1", $db_file1), "\n";
26
26
echo "Test 2 \n" ;
27
27
$ db_file2 = dba_popen ($ db_filename , 'n ' , 'flatfile ' );
28
28
if ($ db_file1 === $ db_file2 ) {
29
- echo "resources are the same \n" ;
29
+ echo "objects are the same \n" ;
30
30
} else {
31
- echo "resources are different \n" ;
31
+ echo "objects are different \n" ;
32
32
}
33
33
34
34
35
- echo "Test 3 - fetch both rows from second resource \n" ;
35
+ echo "Test 3 - fetch both rows from second object \n" ;
36
36
dba_insert ("key2 " , "This is a test insert 2 " , $ db_file2 );
37
37
echo dba_fetch ("key1 " , $ db_file2 ), "\n" ;
38
38
echo dba_fetch ("key2 " , $ db_file2 ), "\n" ;
39
39
40
40
41
- echo "Test 4 - fetch both rows from first resource \n" ;
41
+ echo "Test 4 - fetch both rows from first object \n" ;
42
42
echo dba_fetch ("key1 " , $ db_file1 ), "\n" ;
43
43
echo dba_fetch ("key2 " , $ db_file1 ), "\n" ;
44
44
45
- echo "Test 5 - close 2nd resource \n" ;
45
+ echo "Test 5 - close 2nd object \n" ;
46
46
dba_close ($ db_file2 );
47
47
var_dump ($ db_file1 );
48
48
try {
51
51
echo $ e ->getMessage () . "\n" ;
52
52
}
53
53
54
- echo "Test 6 - query after closing 2nd resource \n" ;
54
+ echo "Test 6 - query after closing 2nd object \n" ;
55
55
echo dba_fetch ("key1 " , $ db_file1 ), "\n" ;
56
56
echo dba_fetch ("key2 " , $ db_file1 ), "\n" ;
57
57
@@ -65,17 +65,17 @@ database handler: flatfile
65
65
Test 1
66
66
This is a test insert 1
67
67
Test 2
68
- resources are different
69
- Test 3 - fetch both rows from second resource
68
+ objects are different
69
+ Test 3 - fetch both rows from second object
70
70
This is a test insert 1
71
71
This is a test insert 2
72
- Test 4 - fetch both rows from first resource
72
+ Test 4 - fetch both rows from first object
73
73
This is a test insert 1
74
74
This is a test insert 2
75
- Test 5 - close 2nd resource
75
+ Test 5 - close 2nd object
76
76
object(Dba\Connection)#%d (%d) {
77
77
}
78
78
DBA connection has already been closed
79
- Test 6 - query after closing 2nd resource
79
+ Test 6 - query after closing 2nd object
80
80
This is a test insert 1
81
81
This is a test insert 2
0 commit comments