We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b420d09 commit c289f52Copy full SHA for c289f52
ext/snmp/tests/bug60749.phpt
@@ -21,7 +21,7 @@ if (ip2long($ip) === FALSE) {
21
$port = 1161;
22
$session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
23
$info = $session->info;
24
-if (strcmp($info["hostname"], "$ip:$port") !== 0) {
+if (!str_ends_with($info["hostname"], ":$port")) {
25
echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
26
}
27
var_dump($session->close());
0 commit comments