Skip to content

Commit 3859e74

Browse files
committed
Fix pasv_port determination
Apparently the ftp server is also used by ext/standard/tests/streams, and only that part actually uses pasv.
1 parent 08eb917 commit 3859e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ftp/tests/server.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ if ($pid) {
407407
}
408408

409409
$soc_name = stream_socket_get_name($soc, false);
410-
$pasv_port = (int) substr($socket_name, strrpos($soc_name, ':') + 1);
410+
$pasv_port = (int) substr($soc_name, strrpos($soc_name, ':') + 1);
411411
} else {
412412
$pasv_port = 1234;
413413
}

0 commit comments

Comments
 (0)