Skip to content

Commit 8f010b1

Browse files
committed
Be louder about errors
1 parent 308b52d commit 8f010b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ext/ftp/tests/server.inc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if ($pid) {
6161
fclose($pasv_listener);
6262
}
6363
} else {
64-
$fs = @stream_socket_client("tcp://$host:$port");
64+
$fs = stream_socket_client("tcp://$host:$port");
6565
}
6666

6767
$pasv = false;
@@ -89,6 +89,7 @@ if ($pid) {
8989
} catch (Throwable $e) {
9090
if (is_resource($fs)) fclose($fs);
9191
fputs($s, "451 {$e->getMessage()}\r\n");
92+
throw $e;
9293
}
9394

9495
return true;

0 commit comments

Comments
 (0)