File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ die('skip SO_PASSCRED is not defined');
17
17
--FILE --
18
18
<?php
19
19
include __DIR__ ."/mcast_helpers.php.inc " ;
20
- $ path = __DIR__ . "/socket_cmsg_credentials.sock " ;
20
+ $ path = sys_get_temp_dir () . "/socket_cmsg_credentials.sock " ;
21
21
22
22
@unlink ($ path );
23
23
@@ -55,7 +55,7 @@ var_dump($data['control'][0]['data']['pid'] === $pid);
55
55
?>
56
56
--CLEAN--
57
57
<?php
58
- $ path = __DIR__ . "/socket_cmsg_credentials.sock " ;
58
+ $ path = sys_get_temp_dir () . "/socket_cmsg_credentials.sock " ;
59
59
@unlink ($ path );
60
60
--EXPECTF --
61
61
creating send socket
Original file line number Diff line number Diff line change @@ -11,14 +11,10 @@ die('skip not for Microsoft Windows');
11
11
if (strtolower (substr (PHP_OS , 0 , 3 )) == 'aix ' ) {
12
12
die ('skip not for AIX ' );
13
13
}
14
- --CLEAN --
15
- <?php
16
- $ path = __DIR__ . "/socket_cmsg_rights.sock " ;
17
- @unlink ($ path );
18
14
--FILE --
19
15
<?php
20
16
include __DIR__ ."/mcast_helpers.php.inc " ;
21
- $ path = __DIR__ . "/socket_cmsg_rights.sock " ;
17
+ $ path = sys_get_temp_dir () . "/socket_cmsg_rights.sock " ;
22
18
23
19
@unlink ($ path );
24
20
@@ -78,6 +74,10 @@ if ($data["control"]) {
78
74
var_dump ($ data );
79
75
}
80
76
?>
77
+ --CLEAN--
78
+ <?php
79
+ $ path = sys_get_temp_dir () . "/socket_cmsg_rights.sock " ;
80
+ @unlink ($ path );
81
81
--EXPECTF --
82
82
creating send socket
83
83
object (Socket)#%d (0) {
You can’t perform that action at this time.
0 commit comments