1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/ftp: Returning a boolean value using RETURN_BOOL (#21187)

This commit is contained in:
Arshid
2026-02-10 17:56:18 +05:30
committed by GitHub
parent 26559c5815
commit c995a6cb4b

View File

@@ -678,11 +678,8 @@ PHP_FUNCTION(ftp_pasv)
}
GET_FTPBUF(ftp, z_ftp);
if (!ftp_pasv(ftp, pasv ? 1 : 0)) {
RETURN_FALSE;
}
RETURN_BOOL(ftp_pasv(ftp, pasv ? 1 : 0));
RETURN_TRUE;
}
/* }}} */