File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,14 @@ opcache.file_update_protection=0
8
8
opcache.file_cache_only=0
9
9
--SKIPIF--
10
10
<?php require_once ('skipif.inc ' ); ?>
11
- <?php if (substr (PHP_OS , 0 , 3 ) == 'WIN ' ) { die ('skip not for Windows ' ); } ?>
11
+ <?php
12
+ if (substr (PHP_OS , 0 , 3 ) == 'WIN ' ) {
13
+ die ('skip not for Windows ' );
14
+ }
15
+ /* On macOS, `/tmp` is an alias to `/private/tmp` .
16
+ * So, we should write `%S/tmp/path` as `/tmp/path`, except for Windows.
17
+ */
18
+ ?>
12
19
--FILE--
13
20
<?php
14
21
$ conf = opcache_get_configuration ();
@@ -20,16 +27,16 @@ include("blacklist.inc");
20
27
$ status = opcache_get_status ();
21
28
print_r (count ($ status ['scripts ' ]));
22
29
?>
23
- --EXPECT --
30
+ --EXPECTF --
24
31
Array
25
32
(
26
33
[0] => /path/to/foo
27
34
[1] => /path/to/foo2
28
35
[2] => /path/to/bar
29
36
[3] => __DIR__/blacklist.inc
30
37
[4] => __DIR__/current.php
31
- [5] => /tmp/path/?nocache.inc
32
- [6] => /tmp/path/*/somedir
38
+ [5] => %S /tmp/path/?nocache.inc
39
+ [6] => %S /tmp/path/*/somedir
33
40
)
34
41
ok
35
42
1
You can’t perform that action at this time.
0 commit comments