File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,16 @@ die('skip not for AIX');
14
14
if (!defined ('SO_PASSCRED ' )) {
15
15
die ('skip SO_PASSCRED is not defined ' );
16
16
}
17
+ --CLEAN --
18
+ <?php
19
+ chdir (sys_get_temp_dir ());
20
+ $ path = "./socket_cmsg_credentials.sock " ;
21
+ @unlink ($ path );
17
22
--FILE --
18
23
<?php
19
24
include __DIR__ ."/mcast_helpers.php.inc " ;
20
- $ path = __DIR__ . "/socket_cmsg_credentials.sock " ;
25
+ chdir (sys_get_temp_dir ());
26
+ $ path = "./socket_cmsg_credentials.sock " ;
21
27
22
28
@unlink ($ path );
23
29
@@ -53,10 +59,6 @@ print_r($data);
53
59
$ pid = getmypid ();
54
60
var_dump ($ data ['control ' ][0 ]['data ' ]['pid ' ] === $ pid );
55
61
?>
56
- --CLEAN--
57
- <?php
58
- $ path = __DIR__ . "/socket_cmsg_credentials.sock " ;
59
- @unlink ($ path );
60
62
--EXPECTF--
61
63
creating send socket
62
64
object(Socket)#%d (0) {
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ die('skip not for AIX');
13
13
}
14
14
--CLEAN --
15
15
<?php
16
- $ path = __DIR__ . "/socket_cmsg_rights.sock " ;
16
+ chdir (sys_get_temp_dir ());
17
+ $ path = "./socket_cmsg_rights.sock " ;
17
18
@unlink ($ path );
18
19
--FILE --
19
20
<?php
20
21
include __DIR__ ."/mcast_helpers.php.inc " ;
21
- $ path = __DIR__ . "/socket_cmsg_rights.sock " ;
22
+ chdir (sys_get_temp_dir ());
23
+ $ path = "./socket_cmsg_rights.sock " ;
22
24
23
25
@unlink ($ path );
24
26
You can’t perform that action at this time.
0 commit comments