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