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:
@@ -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;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user