File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ # Many of these tests work on the same database file
2
+ dba
Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ if(!defined("GLOB_BRACE")) die ('skip');
11
11
?>
12
12
--FILE--
13
13
<?php
14
- $ dirname = dirname ( __FILE__ ) . '/ ' ;
15
- include $ dirname . 'utils.inc ' ;
16
- $ file = $ dirname . '__tmp_oo_addglob .zip ' ;
14
+ include __DIR__ . '/utils.inc ' ;
15
+ $ dirname = __DIR__ . '/oo_addglob_dir/ ' ;
16
+ $ file = $ dirname . 'tmp .zip ' ;
17
17
18
- copy ($ dirname . 'test.zip ' , $ file );
18
+ @mkdir ($ dirname );
19
+ copy (__DIR__ . '/test.zip ' , $ file );
19
20
touch ($ dirname . 'foo.txt ' );
20
21
touch ($ dirname . 'bar.baz ' );
21
22
@@ -36,10 +37,11 @@ if ($zip->status == ZIPARCHIVE::ER_OK) {
36
37
?>
37
38
--CLEAN--
38
39
<?php
39
- $ dirname = dirname ( __FILE__ ) . '/ ' ;
40
- unlink ($ dirname . '__tmp_oo_addglob .zip ' );
40
+ $ dirname = __DIR__ . '/oo_addglob_dir / ' ;
41
+ unlink ($ dirname . 'tmp .zip ' );
41
42
unlink ($ dirname . 'foo.txt ' );
42
43
unlink ($ dirname . 'bar.baz ' );
44
+ rmdir ($ dirname );
43
45
?>
44
46
--EXPECT--
45
47
0 bar
You can’t perform that action at this time.
0 commit comments