mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Make socket path shorter for ext/sockets/tests/socket_cmsg_{rights|credentials}.phpt
When running in CI it fails when path/address is longer 108
This commit is contained in:
parent
b0cc5ed91f
commit
c58241a003
2 changed files with 7 additions and 7 deletions
|
@ -17,7 +17,7 @@ die('skip SO_PASSCRED is not defined');
|
|||
--FILE--
|
||||
<?php
|
||||
include __DIR__."/mcast_helpers.php.inc";
|
||||
$path = __DIR__ . "/socket_cmsg_credentials.sock";
|
||||
$path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
|
||||
|
||||
@unlink($path);
|
||||
|
||||
|
@ -55,7 +55,7 @@ var_dump($data['control'][0]['data']['pid'] === $pid);
|
|||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
$path = __DIR__ . "/socket_cmsg_credentials.sock";
|
||||
$path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
|
||||
@unlink($path);
|
||||
--EXPECTF--
|
||||
creating send socket
|
||||
|
|
|
@ -11,14 +11,10 @@ die('skip not for Microsoft Windows');
|
|||
if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') {
|
||||
die('skip not for AIX');
|
||||
}
|
||||
--CLEAN--
|
||||
<?php
|
||||
$path = __DIR__ . "/socket_cmsg_rights.sock";
|
||||
@unlink($path);
|
||||
--FILE--
|
||||
<?php
|
||||
include __DIR__."/mcast_helpers.php.inc";
|
||||
$path = __DIR__ . "/socket_cmsg_rights.sock";
|
||||
$path = sys_get_temp_dir() . "/socket_cmsg_rights.sock";
|
||||
|
||||
@unlink($path);
|
||||
|
||||
|
@ -78,6 +74,10 @@ if ($data["control"]) {
|
|||
var_dump($data);
|
||||
}
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
$path = sys_get_temp_dir() . "/socket_cmsg_rights.sock";
|
||||
@unlink($path);
|
||||
--EXPECTF--
|
||||
creating send socket
|
||||
object(Socket)#%d (0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue