dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore FileBackendStoreOpHandle::call
[lhc/web/wiklou.git]
/
includes
/
libs
/
UDPTransport.php
diff --git
a/includes/libs/UDPTransport.php
b/includes/libs/UDPTransport.php
index
7fad882
..
7532ce7
100644
(file)
--- a/
includes/libs/UDPTransport.php
+++ b/
includes/libs/UDPTransport.php
@@
-54,7
+54,7
@@
class UDPTransport {
// IPv6 bracketed host
$host = $m[1];
$port = intval( $m[2] );
// IPv6 bracketed host
$host = $m[1];
$port = intval( $m[2] );
- $prefix =
isset( $m[3] ) ? $m[3] :
false;
+ $prefix =
$m[3] ??
false;
$domain = AF_INET6;
} elseif ( preg_match( '!^udp:(?://)?([a-zA-Z0-9.-]+):(\d+)(?:/(.*))?$!', $info, $m ) ) {
$host = $m[1];
$domain = AF_INET6;
} elseif ( preg_match( '!^udp:(?://)?([a-zA-Z0-9.-]+):(\d+)(?:/(.*))?$!', $info, $m ) ) {
$host = $m[1];
@@
-62,7
+62,7
@@
class UDPTransport {
$host = gethostbyname( $host );
}
$port = intval( $m[2] );
$host = gethostbyname( $host );
}
$port = intval( $m[2] );
- $prefix =
isset( $m[3] ) ? $m[3] :
false;
+ $prefix =
$m[3] ??
false;
$domain = AF_INET;
} else {
throw new InvalidArgumentException( __METHOD__ . ': Invalid UDP specification' );
$domain = AF_INET;
} else {
throw new InvalidArgumentException( __METHOD__ . ': Invalid UDP specification' );