mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/ftp: Change return type of ftp_set_option() to true
It either returns true or throws an Error
This commit is contained in:
@@ -132,7 +132,7 @@ namespace {
|
||||
function ftp_quit(FTP\Connection $ftp): bool {}
|
||||
|
||||
/** @param int|bool $value */
|
||||
function ftp_set_option(FTP\Connection $ftp, int $option, $value): bool {}
|
||||
function ftp_set_option(FTP\Connection $ftp, int $option, $value): true {}
|
||||
function ftp_get_option(FTP\Connection $ftp, int $option): int|bool {}
|
||||
}
|
||||
|
||||
|
||||
4
ext/ftp/ftp_arginfo.h
generated
4
ext/ftp/ftp_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 072486274a3361dee3655cfd046a293cfb8a2757 */
|
||||
* Stub hash: 29606d7114a0698b8ae231173a624b17c196ffec */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ftp_connect, 0, 1, FTP\\Connection, MAY_BE_FALSE)
|
||||
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
|
||||
@@ -182,7 +182,7 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_ftp_quit arginfo_ftp_cdup
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_set_option, 0, 3, _IS_BOOL, 0)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftp_set_option, 0, 3, IS_TRUE, 0)
|
||||
ZEND_ARG_OBJ_INFO(0, ftp, FTP\\Connection, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
|
||||
ZEND_ARG_INFO(0, value)
|
||||
|
||||
Reference in New Issue
Block a user