Skip to content

Commit b704222

Browse files
committed
Fix ext/ftp
1 parent fb20139 commit b704222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ftp/tests/server.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ if ($pid) {
5252

5353
if (!$s) die("Error accepting a new connection\n");
5454

55-
register_shutdown_function(function() use($pid, $s) {
55+
register_shutdown_function(function($pid, $s) {
5656
fclose($s);
5757
pcntl_waitpid($pid, $status);
58-
});
58+
}, $pid, $s);
5959

6060
fputs($s, "220----- PHP FTP server 0.3 -----\r\n220 Service ready\r\n");
6161
$buf = fread($s, 2048);

0 commit comments

Comments
 (0)