/** @return mixed */
function func_get_arg(int $arg_num) {}
-/** @return array|false */
-function func_get_args() {}
+function func_get_args(): array|false {}
function strlen(string $str): int {}
function strcmp(string $str1, string $str2): int {}
-/** @return int|false */
-function strncmp(string $str1, string $str2, int $len) {}
+function strncmp(string $str1, string $str2, int $len): int|false {}
function error_reporting($new_error_level = UNKNOWN): int {}
function defined(string $constant_name): bool {}
-/** @return string|false */
-function get_class(object $object = UNKNOWN) {}
+function get_class(object $object = UNKNOWN): string|false {}
-/** @return string|false */
-function get_called_class() {}
+function get_called_class(): string|false {}
-/** @return string|false */
-function get_parent_class($object = UNKNOWN) {}
+function get_parent_class($object = UNKNOWN): string|false {}
function is_subclass_of($object, string $class_name, bool $allow_string = true): bool {}
function is_a($object, string $class_name, bool $allow_string = false): bool {}
-/** @return array|false */
-function get_class_vars(string $class_name) {}
+function get_class_vars(string $class_name): array|false {}
function get_object_vars(object $obj): array {}
function extension_loaded(string $extension_name): bool {}
-/** @return array|false */
-function get_extension_funcs(string $extension_name) {}
+function get_extension_funcs(string $extension_name): array|false {}
#if ZEND_DEBUG && defined(ZTS)
function zend_thread_id(): int {}
ZEND_ARG_TYPE_INFO(0, arg_num, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_func_get_args, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_func_get_args, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strlen, 0, 1, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, str2, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strncmp, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strncmp, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, str2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_class, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_class, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
ZEND_END_ARG_INFO()
-#define arginfo_get_called_class arginfo_func_get_args
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_called_class, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_parent_class, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_parent_class, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, object)
ZEND_END_ARG_INFO()
#define arginfo_is_a arginfo_is_subclass_of
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_class_vars, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_class_vars, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, class_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, extension_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_extension_funcs, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_extension_funcs, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, extension_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_rewind, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_Generator_valid arginfo_class_Generator_rewind
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_valid, 0, 0, _IS_BOOL, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_class_Generator_current arginfo_class_Generator_rewind
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_current, 0, 0, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_class_Generator_key arginfo_class_Generator_rewind
+#define arginfo_class_Generator_key arginfo_class_Generator_current
#define arginfo_class_Generator_next arginfo_class_Generator_rewind
ZEND_ARG_OBJ_INFO(0, exception, Throwable, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_Generator_getReturn arginfo_class_Generator_rewind
+#define arginfo_class_Generator_getReturn arginfo_class_Generator_current
function bcmod(string $dividend, string $divisor, int $scale = UNKNOWN) : string {}
-/** @return string|false */
-function bcpowmod(string $base, string $exponent, string $modulus, int $scale = UNKNOWN) {}
+function bcpowmod(string $base, string $exponent, string $modulus, int $scale = UNKNOWN): string|false {}
function bcpow(string $base, string $exponent, int $scale = UNKNOWN) : string {}
#define arginfo_bcmod arginfo_bcdiv
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bcpowmod, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bcpowmod, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, base, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, modulus, IS_STRING, 0)
*/
function bzopen($file, string $mode) {}
-/**
- * @param resource $bz
- * @return string|false
- */
-function bzread ($bz, int $length = 1024) {}
+/** @param resource $bz */
+function bzread($bz, int $length = 1024): string|false {}
-/**
- * @param resource $bz
- * @return int|false
- */
-function bzwrite ($bz, string $str, int $length = UNKNOWN) {}
+/** @param resource $bz */
+function bzwrite($bz, string $str, int $length = UNKNOWN): int|false {}
/**
* @param resource $bz
*/
-function bzflush ($bz): bool {}
+function bzflush($bz): bool {}
/**
* @param resource $bz
*/
-function bzclose ($bz): bool {}
+function bzclose($bz): bool {}
/**
* @param resource $bz
*/
-function bzerrno ($bz): int {}
+function bzerrno($bz): int {}
/**
* @param resource $bz
*/
-function bzerrstr ($bz): string {}
+function bzerrstr($bz): string {}
/**
* @param resource $bz
*/
-function bzerror ($bz): array {}
+function bzerror($bz): array {}
-/**
- * @return string|int
- */
-function bzcompress (string $source, int $blocksize = 4, int $workfactor = 0) {}
+function bzcompress(string $source, int $blocksize = 4, int $workfactor = 0): string|int {}
-/**
- * @return string|int
- */
-function bzdecompress (string $source, int $small = 0) {}
+function bzdecompress(string $source, int $small = 0): string|int|false {}
ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bzread, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzread, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, bz)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bzwrite, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzwrite, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, bz)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_ARG_INFO(0, bz)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bzcompress, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzcompress, 0, 1, MAY_BE_STRING|MAY_BE_LONG)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, blocksize, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, workfactor, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bzdecompress, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzdecompress, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, small, IS_LONG, 0)
ZEND_END_ARG_INFO()
function gregoriantojd(int $month, int $day, int $year): int {}
-/** @return int|string */
-function jddayofweek(int $juliandaycount, int $mode = CAL_DOW_DAYNO) {}
+function jddayofweek(int $juliandaycount, int $mode = CAL_DOW_DAYNO): int|string {}
function jdmonthname(int $juliandaycount, int $mode): string {}
function juliantojd(int $month, int $day, int $year): int {}
-/** @return int|false */
-function unixtojd(int $timestamp = UNKNOWN) {}
+function unixtojd(int $timestamp = UNKNOWN): int|false {}
#define arginfo_gregoriantojd arginfo_frenchtojd
-ZEND_BEGIN_ARG_INFO_EX(arginfo_jddayofweek, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_jddayofweek, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
ZEND_ARG_TYPE_INFO(0, juliandaycount, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_juliantojd arginfo_frenchtojd
-ZEND_BEGIN_ARG_INFO_EX(arginfo_unixtojd, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_unixtojd, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
ZEND_END_ARG_INFO()
function com_get_active_object(string $progid, int $code_page = UNKNOWN): variant {}
-/** @return string|false */
-function com_create_guid() {}
+function com_create_guid(): string|false {}
function com_event_sink(variant $comobject, object $sinkobject, $sinkinterface = UNKNOWN): bool {}
ZEND_ARG_TYPE_INFO(0, code_page, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_com_create_guid, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_com_create_guid, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_com_event_sink, 0, 2, _IS_BOOL, 0)
/**
* @param resource $handle
- *
* @return resource|false
*/
function curl_copy_handle($handle) {}
/** @param resource $handle */
function curl_error($handle): string {}
-/**
- * @param resource $handle
- *
- * @return string|false
- */
-function curl_escape($handle, string $string) {}
+/** @param resource $handle */
+function curl_escape($handle, string $string): string|false {}
-/**
- * @param resource $handle
- *
- * @return string|bool
- */
-function curl_exec($handle) {}
+/** @param resource $handle */
+function curl_exec($handle): string|bool {}
function curl_file_create(
string $filename,
/**
* @param resource $handle
- *
* @return mixed
*/
function curl_getinfo($handle, int $option = UNKNOWN) {}
/**
* @param resource $handle
- *
* @return resource|false
*/
function curl_init(string $url = UNKNOWN) {}
/** @param resource $multi_handle */
function curl_multi_close($multi_handle): void {}
-/**
- * @param resource $multi_handle
- *
- * @return int|false
- */
+/** @param resource $multi_handle */
function curl_multi_errno($multi_handle): int {}
/** @param resource $multi_handle */
/** @param resource $multi_handle */
function curl_multi_getcontent($multi_handle): ?string {}
-/**
- * @param resource $multi_handle
- *
- * @return array|false
- */
-function curl_multi_info_read($multi_handle, &$msgs_in_queue = null) {}
+/** @param resource $multi_handle */
+function curl_multi_info_read($multi_handle, &$msgs_in_queue = null): array|false {}
/** @return resource */
function curl_multi_init() {}
function curl_strerror(int $error_number): ?string {}
-/**
- * @param resource $handle
- *
- * @return string|false
- */
-function curl_unescape($handle, string $string) {}
+/** @param resource $handle */
+function curl_unescape($handle, string $string): string|false {}
-/** @return array|false */
-function curl_version(int $age = UNKNOWN) {}
+function curl_version(int $age = UNKNOWN): array|false {}
ZEND_ARG_INFO(0, handle)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_curl_escape, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_escape, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, handle)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_curl_exec arginfo_curl_copy_handle
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_exec, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
+ ZEND_ARG_INFO(0, handle)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_curl_file_create, 0, 1, CURLFile, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_INFO(0, multi_handle)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_curl_multi_info_read, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_multi_info_read, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, multi_handle)
ZEND_ARG_INFO(1, msgs_in_queue)
ZEND_END_ARG_INFO()
#define arginfo_curl_unescape arginfo_curl_escape
-ZEND_BEGIN_ARG_INFO_EX(arginfo_curl_version, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_version, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0)
ZEND_END_ARG_INFO()
/* TODO: Convert "uninitialized" into an exception. This will remove many
* possibilities for false return values in here. */
-/** @return int|false */
-function strtotime(string $time, int $now = UNKNOWN) {}
+function strtotime(string $time, int $now = UNKNOWN): int|false {}
function date(string $format, int $timestamp = UNKNOWN): string {}
-/** @return int|false */
-function idate(string $format, int $timestamp = UNKNOWN) {}
+function idate(string $format, int $timestamp = UNKNOWN): int|false {}
function gmdate(string $format, int $timestamp = UNKNOWN): string {}
-/** @return int|false */
function mktime(
int $hour, int $min = UNKNOWN, int $sec = UNKNOWN,
- int $mon = UNKNOWN, int $day = UNKNOWN, int $year = UNKNOWN) {}
+ int $mon = UNKNOWN, int $day = UNKNOWN, int $year = UNKNOWN): int|false {}
-/** @return int|false */
function gmmktime(
int $hour, int $min = UNKNOWN, int $sec = UNKNOWN,
- int $mon = UNKNOWN, int $day = UNKNOWN, int $year = UNKNOWN) {}
+ int $mon = UNKNOWN, int $day = UNKNOWN, int $year = UNKNOWN): int|false {}
function checkdate(int $m, int $d, int $y): bool {}
-/** @return string|false */
-function strftime(string $format, int $timestamp = UNKNOWN) {}
+function strftime(string $format, int $timestamp = UNKNOWN): string|false {}
-/** @return string|false */
-function gmstrftime(string $format, int $timestamp = UNKNOWN) {}
+function gmstrftime(string $format, int $timestamp = UNKNOWN): string|false {}
function time(): int {}
function date_parse_from_format(string $format, string $date): array {}
-/** @return array|false */
-function date_get_last_errors() {}
+function date_get_last_errors(): array|false {}
function date_format(DateTimeInterface $object, string $format): string {}
function date_timestamp_set(DateTime $object, int $timestamp): DateTime {}
-/** @return int|false */
-function date_timestamp_get(DateTimeInterface $object) {}
+function date_timestamp_get(DateTimeInterface $object): int|false {}
/** @return DateTimeZone|false */
function timezone_open(string $timezone) {}
function timezone_name_get(DateTimeZone $object): string {}
-/** @return string|false */
-function timezone_name_from_abbr(string $abbr, int $gmtoffset = -1, int $isdst = -1) {}
+function timezone_name_from_abbr(string $abbr, int $gmtoffset = -1, int $isdst = -1): string|false {}
function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime): int {}
-/** @return array|false */
function timezone_transitions_get(
- DateTimeZone $object, int $timestamp_begin = PHP_INT_MIN, int $timestamp_end = PHP_INT_MAX) {}
+ DateTimeZone $object, int $timestamp_begin = PHP_INT_MIN, int $timestamp_end = PHP_INT_MAX): array|false {}
-/** @return array|false */
-function timezone_location_get(DateTimeZone $object) {}
+function timezone_location_get(DateTimeZone $object): array|false {}
-/** @return array|false */
-function timezone_identifiers_list(int $what = DateTimeZone::ALL, ?string $country = null) {}
+function timezone_identifiers_list(int $what = DateTimeZone::ALL, ?string $country = null): array|false {}
function timezone_abbreviations_list(): array {}
function date_default_timezone_get(): string {}
-/** @return string|int|float|false */
function date_sunrise(
int $time, int $retformat = SUNFUNCS_RET_STRING,
float $latitude = UNKNOWN, float $longitude = UNKNOWN, float $zenith = UNKNOWN,
- float $gmt_offset = 0) {}
+ float $gmt_offset = 0): string|int|float|false {}
-/** @return string|int|float|false */
function date_sunset(
int $time, int $retformat = SUNFUNCS_RET_STRING,
float $latitude = UNKNOWN, float $longitude = UNKNOWN, float $zenith = UNKNOWN,
- float $gmt_offset = 0) {}
+ float $gmt_offset = 0): string|int|float|false {}
function date_sun_info(int $time, float $latitude, float $longitude): array {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strtotime, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, time, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, now, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_idate, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_idate, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_gmdate arginfo_date
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mktime, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mktime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hour, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, min, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, sec, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_strftime arginfo_idate
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strftime, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_gmstrftime arginfo_idate
+#define arginfo_gmstrftime arginfo_strftime
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_time, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, date, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_date_get_last_errors, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_date_get_last_errors, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_date_format, 0, 2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_date_timestamp_get arginfo_date_timezone_get
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_date_timestamp_get, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_timezone_open, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, timezone, IS_STRING, 0)
ZEND_ARG_OBJ_INFO(0, object, DateTimeZone, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_timezone_name_from_abbr, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_timezone_name_from_abbr, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, abbr, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, gmtoffset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, isdst, IS_LONG, 0)
ZEND_ARG_OBJ_INFO(0, datetime, DateTimeInterface, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_timezone_transitions_get, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_timezone_transitions_get, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, object, DateTimeZone, 0)
ZEND_ARG_TYPE_INFO(0, timestamp_begin, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, timestamp_end, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_timezone_location_get, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_timezone_location_get, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, object, DateTimeZone, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_timezone_identifiers_list, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_timezone_identifiers_list, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, what, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, country, IS_STRING, 1)
ZEND_END_ARG_INFO()
#define arginfo_date_default_timezone_get arginfo_timezone_version_get
-ZEND_BEGIN_ARG_INFO_EX(arginfo_date_sunrise, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_date_sunrise, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, time, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, retformat, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, latitude, IS_DOUBLE, 0)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_DateTimeInterface_getTimezone arginfo_date_get_last_errors
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DateTimeInterface_getTimezone, 0, 0, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_class_DateTimeInterface_getOffset arginfo_date_get_last_errors
+#define arginfo_class_DateTimeInterface_getOffset arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DateTimeInterface_getTimestamp arginfo_date_get_last_errors
+#define arginfo_class_DateTimeInterface_getTimestamp arginfo_class_DateTimeInterface_getTimezone
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DateTimeInterface_diff, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
ZEND_ARG_TYPE_INFO(0, absolute, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_DateTimeInterface___wakeup arginfo_date_get_last_errors
+#define arginfo_class_DateTimeInterface___wakeup arginfo_class_DateTimeInterface_getTimezone
#define arginfo_class_DateTime___construct arginfo_date_create
#define arginfo_class_DateTime_createFromFormat arginfo_date_create_from_format
-#define arginfo_class_DateTime_getLastErrors arginfo_date_get_last_errors
+#define arginfo_class_DateTime_getLastErrors arginfo_class_DateTimeInterface_getTimezone
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DateTime_modify, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, modify, IS_STRING, 0)
#define arginfo_class_DateTimeZone___construct arginfo_timezone_open
-#define arginfo_class_DateTimeZone_getName arginfo_date_get_last_errors
+#define arginfo_class_DateTimeZone_getName arginfo_class_DateTimeInterface_getTimezone
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DateTimeZone_getOffset, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, datetime, DateTimeInterface, 0)
ZEND_ARG_TYPE_INFO(0, timestamp_end, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_DateTimeZone_getLocation arginfo_date_get_last_errors
+#define arginfo_class_DateTimeZone_getLocation arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DateTimeZone_listAbbreviations arginfo_date_get_last_errors
+#define arginfo_class_DateTimeZone_listAbbreviations arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DateTimeZone_listIdentifiers arginfo_timezone_identifiers_list
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DateTimeZone_listIdentifiers, 0, 0, 0)
+ ZEND_ARG_TYPE_INFO(0, what, IS_LONG, 0)
+ ZEND_ARG_TYPE_INFO(0, country, IS_STRING, 1)
+ZEND_END_ARG_INFO()
-#define arginfo_class_DateTimeZone___wakeup arginfo_date_get_last_errors
+#define arginfo_class_DateTimeZone___wakeup arginfo_class_DateTimeInterface_getTimezone
#define arginfo_class_DateTimeZone___set_state arginfo_class_DateTime___set_state
#define arginfo_class_DateInterval_format arginfo_class_DateTimeInterface_format
-#define arginfo_class_DateInterval___wakeup arginfo_date_get_last_errors
+#define arginfo_class_DateInterval___wakeup arginfo_class_DateTimeInterface_getTimezone
#define arginfo_class_DateInterval___set_state arginfo_class_DateTime___set_state
ZEND_ARG_INFO(0, end)
ZEND_END_ARG_INFO()
-#define arginfo_class_DatePeriod_getStartDate arginfo_date_get_last_errors
+#define arginfo_class_DatePeriod_getStartDate arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DatePeriod_getEndDate arginfo_date_get_last_errors
+#define arginfo_class_DatePeriod_getEndDate arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DatePeriod_getDateInterval arginfo_date_get_last_errors
+#define arginfo_class_DatePeriod_getDateInterval arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DatePeriod_getRecurrences arginfo_date_get_last_errors
+#define arginfo_class_DatePeriod_getRecurrences arginfo_class_DateTimeInterface_getTimezone
-#define arginfo_class_DatePeriod___wakeup arginfo_date_get_last_errors
+#define arginfo_class_DatePeriod___wakeup arginfo_class_DateTimeInterface_getTimezone
#define arginfo_class_DatePeriod___set_state arginfo_class_DateTime___set_state
* @param string|array $key
* @param int|resource $skip actually this parameter is optional, not $handle
* @param resource $handle
- * @return string|false
*/
-function dba_fetch($key, $skip, $handle = UNKOWN) {}
+function dba_fetch($key, $skip, $handle = UNKOWN): string|false {}
-/** @return array|false */
-function dba_key_split(string $key) {}
+function dba_key_split(string $key): array|false {}
-/**
- * @param resource $handle
- * @return string|false
- */
-function dba_firstkey($handle) {}
+/** @param resource $handle */
+function dba_firstkey($handle): string|false {}
-/**
- * @param resource $handle
- * @return string|false
- */
-function dba_nextkey($handle) {}
+/** @param resource $handle */
+function dba_nextkey($handle): string|false {}
/**
* @param string|array $key
ZEND_ARG_INFO(0, handle)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_fetch, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_fetch, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, skip)
ZEND_ARG_INFO(0, handle)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_key_split, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_key_split, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_firstkey, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_firstkey, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, handle)
ZEND_END_ARG_INFO()
/** @param resource $broker */
function enchant_broker_set_dict_path($broker, int $name, string $value): bool {}
-/**
- * @param resource $broker
- * @return string|false
- */
-function enchant_broker_get_dict_path($broker, int $name) {}
+/** @param resource $broker */
+function enchant_broker_get_dict_path($broker, int $name): string|false {}
/** @param resource $broker */
function enchant_broker_list_dicts($broker): array {}
/** @param resource $dict */
function enchant_dict_store_replacement($dict, string $mis, string $cor): void {}
-/**
-* @param resource $dict
-* @return string|false
-*/
-function enchant_dict_get_error($dict) {}
+/** @param resource $dict */
+function enchant_dict_get_error($dict): string|false {}
/** @param resource $dict */
function enchant_dict_describe($dict): array {}
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_get_dict_path, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_dict_path, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, broker)
ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, cor, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_dict_get_error, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_dict_get_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, dict)
ZEND_END_ARG_INFO()
<?php
-/** @return string|false */
-function exif_tagname(int $index) {}
+function exif_tagname(int $index): string|false {}
-/** @return array|false */
-function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false) {}
+function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false): array|false {}
-/** @return string|false */
-function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null) {}
+function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null): string|false {}
-/** @return int|false */
-function exif_imagetype(string $filename) {}
+function exif_imagetype(string $filename): int|false {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_exif_tagname, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_tagname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_exif_read_data, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_read_data, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, filename)
ZEND_ARG_TYPE_INFO(0, sections_needed, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, sub_arrays, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, read_thumbnail, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_exif_thumbnail, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_thumbnail, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, filename)
ZEND_ARG_INFO(1, width)
ZEND_ARG_INFO(1, height)
ZEND_ARG_INFO(1, imagetype)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_exif_imagetype, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_imagetype, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
/**
* @param resource $finfo
* @param ?resource $context
- * @return string|false
*/
-function finfo_file($finfo, string $file_name, int $options = FILEINFO_NONE, $context = null) {}
+function finfo_file($finfo, string $file_name, int $options = FILEINFO_NONE, $context = null): string|false {}
/**
* @param resource $finfo
* @param ?resource $context
- * @return string|false
*/
-function finfo_buffer($finfo, string $string, int $options = FILEINFO_NONE, $context = null) {}
+function finfo_buffer($finfo, string $string, int $options = FILEINFO_NONE, $context = null): string|false {}
/**
* @param resource|string $filename
- * @return string|false
*/
-function mime_content_type($filename) {}
+function mime_content_type($filename): string|false {}
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_finfo_file, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_finfo_file, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, finfo)
ZEND_ARG_TYPE_INFO(0, file_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_ARG_INFO(0, context)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_finfo_buffer, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_finfo_buffer, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, finfo)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_ARG_INFO(0, context)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mime_content_type, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mime_content_type, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, filename)
ZEND_END_ARG_INFO()
function filter_list(): array {}
-/**
- * @return int|false
- */
-function filter_id(string $filtername) {}
+function filter_id(string $filtername): int|false {}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_filter_list, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_id, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_filter_id, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filtername, IS_STRING, 0)
ZEND_END_ARG_INFO()
/** @param resource $ftp */
function ftp_login($ftp, string $username, string $password): bool {}
-/**
- * @param resource $ftp
- * @return string|false
- */
-function ftp_pwd($ftp) {}
+/** @param resource $ftp */
+function ftp_pwd($ftp): string|false {}
/** @param resource $ftp */
function ftp_cdup($ftp): bool {}
/** @param resource $ftp */
-function ftp_chdir($ftp, string $directory): bool {}
+function ftp_chdir($ftp, string $directory): bool {}
/** @param resource $ftp */
function ftp_exec($ftp, string $command): bool {}
/** @param resource $ftp */
function ftp_raw($ftp, string $command): array {}
-/**
- * @param resource $ftp
- * @return string|false
- */
-function ftp_mkdir($ftp, string $directory) {}
+/** @param resource $ftp */
+function ftp_mkdir($ftp, string $directory): string|false {}
/** @param resource $ftp */
function ftp_rmdir($ftp, string $directory): bool {}
-/**
- * @param resource $ftp
- * @return int|false
- */
-function ftp_chmod($ftp, int $mode, string $filename) {}
+/** @param resource $ftp */
+function ftp_chmod($ftp, int $mode, string $filename): int|false {}
/** @param resource $ftp */
function ftp_alloc($ftp, int $size, &$response = UNKNOWN): bool {}
-/**
- * @param resource $ftp
- * @return array|false
- */
-function ftp_nlist($ftp, string $directory) {}
+/** @param resource $ftp */
+function ftp_nlist($ftp, string $directory): array|false {}
-/**
- * @param resource $ftp
- * @return array|false
- */
-function ftp_rawlist($ftp, string $directory, bool $recurse = false) {}
+/** @param resource $ftp */
+function ftp_rawlist($ftp, string $directory, bool $recurse = false): array|false {}
-/**
- * @param resource $ftp
- * @return array|false
- */
-function ftp_mlsd($ftp, string $directory) {}
+/** @param resource $ftp */
+function ftp_mlsd($ftp, string $directory): array|false {}
-/**
- * @param resource $ftp
- * @return string|false
- */
-function ftp_systype($ftp) {}
+/** @param resource $ftp */
+function ftp_systype($ftp): string|false {}
/**
* @param resource $ftp
/**
* @param resource $ftp
* @param resource $fp
- * @return int|false
*/
-function ftp_nb_fget($ftp, $fp, string $remote_file, int $mode = FTP_BINARY, int $resumpos = 0) {}
+function ftp_nb_fget($ftp, $fp, string $remote_file, int $mode = FTP_BINARY, int $resumpos = 0): int|false {}
/** @param resource $ftp */
function ftp_pasv($ftp, bool $pasv): bool {}
/**
* @param resource $ftp
* @param resource $fp
- * @return int|false
*/
-function ftp_nb_fput($ftp, string $remote_file, $fp, $mode = FTP_BINARY, $startpos = 0) {}
+function ftp_nb_fput($ftp, string $remote_file, $fp, $mode = FTP_BINARY, $startpos = 0): int|false {}
/** @param resource $ftp */
function ftp_put($ftp, string $remote_file, string $local_file, int $mode = FTP_BINARY, int $startpos = 0): bool {}
/** @param resource $ftp */
function ftp_append($ftp, string $remove_file, string $local_file, int $mode = FTP_BINARY): bool {}
-/**
- * @param resource $ftp
- * @return int|false
- */
-function ftp_nb_put($ftp, string $remote_file, string $local_file, int $mode = FTP_BINARY, int $startpos = 0) {}
+/** @param resource $ftp */
+function ftp_nb_put($ftp, string $remote_file, string $local_file, int $mode = FTP_BINARY, int $startpos = 0): int|false {}
/** @param resource $ftp */
function ftp_size($ftp, string $filename): int {}
/** @param resource $ftp */
function ftp_set_option($ftp, int $option, $value): bool {}
-/**
- * @param resource $ftp
- * @return int|bool
- */
-function ftp_get_option($ftp, int $option) {}
+/** @param resource $ftp */
+function ftp_get_option($ftp, int $option): int|bool {}
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_pwd, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_pwd, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, command, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_mkdir, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_mkdir, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_ftp_rmdir arginfo_ftp_chdir
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_chmod, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_chmod, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_INFO(1, response)
ZEND_END_ARG_INFO()
-#define arginfo_ftp_nlist arginfo_ftp_mkdir
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_nlist, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, ftp)
+ ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_rawlist, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_rawlist, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, recurse, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-#define arginfo_ftp_mlsd arginfo_ftp_mkdir
+#define arginfo_ftp_mlsd arginfo_ftp_nlist
#define arginfo_ftp_systype arginfo_ftp_pwd
ZEND_ARG_TYPE_INFO(0, resumepos, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_nb_fget, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_nb_fget, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_INFO(0, fp)
ZEND_ARG_TYPE_INFO(0, remote_file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, startpos, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_nb_fput, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_nb_fput, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, remote_file, IS_STRING, 0)
ZEND_ARG_INFO(0, fp)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_nb_put, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_nb_put, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, remote_file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, local_file, IS_STRING, 0)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ftp_get_option, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ftp_get_option, 0, 2, MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_INFO(0, ftp)
ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
ZEND_END_ARG_INFO()
function gd_info(): array {}
-/** @return int|false */
-function imageloadfont(string $filename) {}
+function imageloadfont(string $filename): int|false {}
function imagesetstyle($im, array $styles): bool {}
function imagelayereffect(GdImage $im, int $effect): bool {}
-/** @return int|false */
-function imagecolorallocatealpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}
+function imagecolorallocatealpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
-/** @return int|false */
-function imagecolorresolvealpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}
+function imagecolorresolvealpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
-/** @return int|false */
-function imagecolorclosestalpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}
+function imagecolorclosestalpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
-/** @return int|false */
-function imagecolorexactalpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}
+function imagecolorexactalpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
function imagecopyresampled(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h): bool {}
/** @return GdImage|false */
function imagecreatefrombmp(string $filename) {}
#endif
-
+
#ifdef HAVE_GD_TGA
/** @return GdImage|false */
function imagecreatefromtga(string $filename) {}
function imagedestroy(GdImage $im): bool {}
-/** @return int|false */
-function imagecolorallocate(GdImage $im, int $red, int $green, int $blue) {}
+function imagecolorallocate(GdImage $im, int $red, int $green, int $blue): int|false {}
function imagepalettecopy(GdImage $dst, GdImage $src): void {}
-/** @return int|false */
-function imagecolorat(GdImage $im, int $x, int $y) {}
+function imagecolorat(GdImage $im, int $x, int $y): int|false {}
-/** @return int|false */
-function imagecolorclosest(GdImage $im, int $red, int $green, int $blue) {}
+function imagecolorclosest(GdImage $im, int $red, int $green, int $blue): int|false {}
-/** @return int|false */
-function imagecolorclosesthwb(GdImage $im, int $red, int $green, int $blue) {}
+function imagecolorclosesthwb(GdImage $im, int $red, int $green, int $blue): int|false {}
function imagecolordeallocate(GdImage $im, int $index): bool {}
-/** @return int|false */
-function imagecolorresolve(GdImage $im, int $red, int $green, int $blue) {}
+function imagecolorresolve(GdImage $im, int $red, int $green, int $blue): int|false {}
-/** @return int|false */
-function imagecolorexact(GdImage $im, int $red, int $green, int $blue) {}
+function imagecolorexact(GdImage $im, int $red, int $green, int $blue): int|false {}
-/** @return ?false */
-function imagecolorset(GdImage $im, int $color, int $red, int $green, int $blue, int $alpha = 0) {}
+function imagecolorset(GdImage $im, int $color, int $red, int $green, int $blue, int $alpha = 0): ?bool {}
-/** @return array|false */
-function imagecolorsforindex(GdImage $im, int $index) {}
+function imagecolorsforindex(GdImage $im, int $index): array|false {}
function imagegammacorrect(GdImage $im, float $inputgamma, float $outputgamma): bool {}
function imagegetclip(GdImage $im): array {}
#ifdef HAVE_GD_FREETYPE
-/** @return array|false */
-function imageftbbox(float $size, float $angle, string $font_file, string $text, array $extrainfo = UNKNOWN) {}
+function imageftbbox(float $size, float $angle, string $font_file, string $text, array $extrainfo = UNKNOWN): array|false {}
function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text, array $extrainfo = UNKNOWN) {}
/** @return GdImage|false */
function imageaffine(GdImage $im, array $affine, array $clip = UNKNOWN) {}
-/** @return array|false */
-function imageaffinematrixget(int $type, $options = UNKNOWN) {}
+function imageaffinematrixget(int $type, $options = UNKNOWN): array|false {}
-/** @return array|false */
-function imageaffinematrixconcat(array $m1, array $m2) {}
+function imageaffinematrixconcat(array $m1, array $m2): array|false {}
function imagesetinterpolation(GdImage $im, int $method = IMG_BILENEAR_FIXED): bool {}
-/** @return array|true */
-function imageresolution(GdImage $im, int $res_x = UNKNOWN, int $res_y = UNKNOWN) {}
+function imageresolution(GdImage $im, int $res_x = UNKNOWN, int $res_y = UNKNOWN): array|bool {}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imageloadfont, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageloadfont, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, effect, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecolorallocatealpha, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagecolorallocatealpha, 0, 5, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, red, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, green, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_imagecreatefromgif arginfo_imageloadfont
+ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecreatefromgif, 0, 0, 1)
+ ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
+ZEND_END_ARG_INFO()
#if defined(HAVE_GD_JPG)
ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecreatefromjpeg, 0, 0, 1)
ZEND_END_ARG_INFO()
#endif
-#define arginfo_imagecreatefromxbm arginfo_imageloadfont
+#define arginfo_imagecreatefromxbm arginfo_imagecreatefromgif
#if defined(HAVE_GD_XPM)
ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecreatefromxpm, 0, 0, 1)
ZEND_END_ARG_INFO()
#endif
-#define arginfo_imagecreatefromwbmp arginfo_imageloadfont
+#define arginfo_imagecreatefromwbmp arginfo_imagecreatefromgif
-#define arginfo_imagecreatefromgd arginfo_imageloadfont
+#define arginfo_imagecreatefromgd arginfo_imagecreatefromgif
-#define arginfo_imagecreatefromgd2 arginfo_imageloadfont
+#define arginfo_imagecreatefromgd2 arginfo_imagecreatefromgif
ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecreatefromgd2part, 0, 0, 5)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
#define arginfo_imagedestroy arginfo_imageistruecolor
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecolorallocate, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagecolorallocate, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, red, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, green, IS_LONG, 0)
ZEND_ARG_OBJ_INFO(0, src, GdImage, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecolorat, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagecolorat, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0)
#define arginfo_imagecolorexact arginfo_imagecolorallocate
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecolorset, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolorset, 0, 5, _IS_BOOL, 1)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, color, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, red, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, alpha, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecolorsforindex, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagecolorsforindex, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if defined(HAVE_GD_FREETYPE)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imageftbbox, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageftbbox, 0, 4, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, size, IS_DOUBLE, 0)
ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0)
ZEND_ARG_TYPE_INFO(0, font_file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, clip, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imageaffinematrixget, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageaffinematrixget, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imageaffinematrixconcat, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageaffinematrixconcat, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, m1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, m2, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imageresolution, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageresolution, 0, 1, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_OBJ_INFO(0, im, GdImage, 0)
ZEND_ARG_TYPE_INFO(0, res_x, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, res_y, IS_LONG, 0)
<?php
-/** @return string|false */
-function textdomain(?string $domain) {}
+function textdomain(?string $domain): string|false {}
-/** @return string|false */
-function gettext(string $msgid) {}
+function gettext(string $msgid): string|false {}
-/** @return string|false */
-function dgettext(string $domain_name, string $msgid) {}
+function dgettext(string $domain_name, string $msgid): string|false {}
-/** @return string|false */
-function dcgettext(string $domain_name, string $msgid, int $category) {}
+function dcgettext(string $domain_name, string $msgid, int $category): string|false {}
-/** @return string|false */
-function bindtextdomain(string $domain_name, string $dir) {}
+function bindtextdomain(string $domain_name, string $dir): string|false {}
#if HAVE_NGETTEXT
-/** @return string|false */
-function ngettext(string $msgid1, string $msgid2, int $n) {}
+function ngettext(string $msgid1, string $msgid2, int $n): string|false {}
#endif
#if HAVE_DNGETTEXT
-/** @return string|false */
-function dngettext(string $domain, string $msgid1, string $msgid2, int $count) {}
+function dngettext(string $domain, string $msgid1, string $msgid2, int $count): string|false {}
#endif
#if HAVE_DCNGETTEXT
-/** @return string|false */
-function dcngettext(string $domain, string $msgid1, string $msgid2, int $count, int $category) {}
+function dcngettext(string $domain, string $msgid1, string $msgid2, int $count, int $category): string|false {}
#endif
#if HAVE_BIND_TEXTDOMAIN_CODESET
-/** @return string|false */
-function bind_textdomain_codeset(string $domain, string $codeset) {}
+function bind_textdomain_codeset(string $domain, string $codeset): string|false {}
#endif
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_textdomain, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_textdomain, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gettext, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gettext, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, msgid, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dgettext, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dgettext, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dcgettext, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dcgettext, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, category, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bindtextdomain, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bindtextdomain, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, dir, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if HAVE_NGETTEXT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ngettext, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ngettext, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
#endif
#if HAVE_DNGETTEXT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dngettext, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dngettext, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid2, IS_STRING, 0)
#endif
#if HAVE_DCNGETTEXT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dcngettext, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dcngettext, 0, 5, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, msgid2, IS_STRING, 0)
#endif
#if HAVE_BIND_TEXTDOMAIN_CODESET
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bind_textdomain_codeset, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bind_textdomain_codeset, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, codeset, IS_STRING, 0)
ZEND_END_ARG_INFO()
/** @return GMP|false */
function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {}
-/**
- * @param GMP|int|bool|string $gmpnumber
- * @return string|false
- */
-function gmp_export($gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN) {}
+/** @param GMP|int|bool|string $gmpnumber */
+function gmp_export($gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string|false {}
/** @param GMP|int|bool|string $gmpnumber */
function gmp_intval($gmpnumber): int {}
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return array|false
*/
-function gmp_div_qr($a, $b, int $round = GMP_ROUND_ZERO) {}
+function gmp_div_qr($a, $b, int $round = GMP_ROUND_ZERO): array|false {}
/**
* @param GMP|int|bool|string $a
*/
function gmp_sqrt($a) {}
-/**
- * @param GMP|int|bool|string $a
- * @return array|false
- */
-function gmp_sqrtrem($a) {}
+/** @param GMP|int|bool|string $a */
+function gmp_sqrtrem($a): array|false {}
/**
* @param GMP|int|bool|string $a
**/
function gmp_root($a, int $nth) {}
-/**
- * @param GMP|int|bool|string $a
- * @return array|false
- **/
-function gmp_rootrem($a, int $nth) {}
+/** @param GMP|int|bool|string $a **/
+function gmp_rootrem($a, int $nth): array|false {}
/**
* @param GMP|int|bool|string $base
/** @param GMP|int|bool|string $a **/
function gmp_perfect_power($a): bool {}
-/**
- * @param GMP|int|bool|string $a
- * @return int|false
- */
-function gmp_prob_prime($a, int $reps = 10) {}
+/** @param GMP|int|bool|string $a */
+function gmp_prob_prime($a, int $reps = 10): int|false {}
/**
* @param GMP|int|bool|string $a
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return int|false
*/
-function gmp_jacobi($a, $b) {}
+function gmp_jacobi($a, $b): int|false {}
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return int|false
*/
-function gmp_legendre($a, $b) {}
+function gmp_legendre($a, $b): int|false {}
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return int|false
*/
-function gmp_kronecker($a, $b) {}
+function gmp_kronecker($a, $b): int|false {}
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return int|false
*/
-function gmp_cmp($a, $b) {}
+function gmp_cmp($a, $b): int|false {}
-/**
- * @param GMP|int|bool|string $a
- * @return int|false
- */
-function gmp_sign($a) {}
+/** @param GMP|int|bool|string $a */
+function gmp_sign($a): int|false {}
-/**
- * @param GMP|int|bool|string $seed
- * @return null|false
- */
-function gmp_random_seed($seed) {}
+/** @param GMP|int|bool|string $seed */
+function gmp_random_seed($seed): ?bool {}
/** @return GMP|false */
function gmp_random_bits(int $bits) {}
*/
function gmp_xor($a, $b) {}
-/** @return null|false */
-function gmp_setbit(GMP $a, int $index, bool $set_clear = true) {}
+function gmp_setbit(GMP $a, int $index, bool $set_clear = true): ?bool {}
-/** @return null|false */
-function gmp_clrbit(GMP $a, int $index) {}
+function gmp_clrbit(GMP $a, int $index): ?bool {}
/** @param GMP|int|bool|string $a */
function gmp_testbit($a, int $index): bool {}
-/**
- * @param GMP|int|bool|string $a
- * @return int|false
- */
-function gmp_scan0($a, int $start) {}
+/** @param GMP|int|bool|string $a */
+function gmp_scan0($a, int $start): int|false {}
-/**
- * @param GMP|int|bool|string $a
- * @return int|false
- */
-function gmp_scan1($a, int $start) {}
+/** @param GMP|int|bool|string $a */
+function gmp_scan1($a, int $start): int|false {}
-/**
- * @param GMP|int|bool|string $a
- * @return int|false
- */
-function gmp_popcount($a) {}
+/** @param GMP|int|bool|string $a */
+function gmp_popcount($a): int|false {}
/**
* @param GMP|int|bool|string $a
* @param GMP|int|bool|string $b
- * @return int|false
*/
-function gmp_hamdist($a, $b) {}
+function gmp_hamdist($a, $b): int|false {}
/**
* @param GMP|int|bool|string $a
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_export, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_export, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, gmpnumber)
ZEND_ARG_TYPE_INFO(0, word_size, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
#define arginfo_gmp_mul arginfo_gmp_add
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_div_qr, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_div_qr, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, a)
ZEND_ARG_INFO(0, b)
ZEND_ARG_TYPE_INFO(0, round, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_gmp_div_q arginfo_gmp_div_qr
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_div_q, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ ZEND_ARG_TYPE_INFO(0, round, IS_LONG, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_gmp_div_r arginfo_gmp_div_qr
+#define arginfo_gmp_div_r arginfo_gmp_div_q
-#define arginfo_gmp_div arginfo_gmp_div_qr
+#define arginfo_gmp_div arginfo_gmp_div_q
#define arginfo_gmp_mod arginfo_gmp_add
#define arginfo_gmp_sqrt arginfo_gmp_neg
-#define arginfo_gmp_sqrtrem arginfo_gmp_neg
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_sqrtrem, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, a)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_root, 0, 0, 2)
ZEND_ARG_INFO(0, a)
ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_gmp_rootrem arginfo_gmp_root
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_rootrem, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_TYPE_INFO(0, nth, IS_LONG, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_pow, 0, 0, 2)
ZEND_ARG_INFO(0, base)
#define arginfo_gmp_perfect_power arginfo_gmp_perfect_square
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_prob_prime, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_prob_prime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, a)
ZEND_ARG_TYPE_INFO(0, reps, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_gmp_invert arginfo_gmp_add
-#define arginfo_gmp_jacobi arginfo_gmp_add
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_jacobi, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
-#define arginfo_gmp_legendre arginfo_gmp_add
+#define arginfo_gmp_legendre arginfo_gmp_jacobi
-#define arginfo_gmp_kronecker arginfo_gmp_add
+#define arginfo_gmp_kronecker arginfo_gmp_jacobi
-#define arginfo_gmp_cmp arginfo_gmp_add
+#define arginfo_gmp_cmp arginfo_gmp_jacobi
-#define arginfo_gmp_sign arginfo_gmp_neg
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_sign, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, a)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_random_seed, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_random_seed, 0, 1, _IS_BOOL, 1)
ZEND_ARG_INFO(0, seed)
ZEND_END_ARG_INFO()
#define arginfo_gmp_xor arginfo_gmp_add
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_setbit, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_setbit, 0, 2, _IS_BOOL, 1)
ZEND_ARG_OBJ_INFO(0, a, GMP, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, set_clear, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_clrbit, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gmp_clrbit, 0, 2, _IS_BOOL, 1)
ZEND_ARG_OBJ_INFO(0, a, GMP, 0)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gmp_scan0, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gmp_scan0, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, a)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_gmp_scan1 arginfo_gmp_scan0
-#define arginfo_gmp_popcount arginfo_gmp_neg
+#define arginfo_gmp_popcount arginfo_gmp_sign
-#define arginfo_gmp_hamdist arginfo_gmp_add
+#define arginfo_gmp_hamdist arginfo_gmp_jacobi
#define arginfo_gmp_nextprime arginfo_gmp_neg
<?php
-/** @return string|false */
-function hash(string $algo, string $data, bool $raw_output = false) {}
+function hash(string $algo, string $data, bool $raw_output = false): string|false {}
-/** @return string|false */
-function hash_file(string $algo, string $filename, bool $raw_output = false) {}
+function hash_file(string $algo, string $filename, bool $raw_output = false): string|false {}
-/** @return string|false */
-function hash_hmac(string $algo, string $data, string $key, bool $raw_output = false) {}
+function hash_hmac(string $algo, string $data, string $key, bool $raw_output = false): string|false {}
-/** @return string|false */
-function hash_hmac_file(string $algo, string $data, string $key, bool $raw_output = false) {}
+function hash_hmac_file(string $algo, string $data, string $key, bool $raw_output = false): string|false {}
function hash_init(string $algo, int $options = 0, string $key = UNKNOWN): HashContext {}
-/** @return true */
function hash_update(HashContext $context, string $data): bool {}
/** @param resource $handle */
function hash_hkdf(string $algo, string $ikm, int $length = 0, string $info = '', string $salt = ''): string {}
#ifdef PHP_MHASH_BC
-/** @return int|false */
-function mhash_get_block_size(int $hash) {}
+function mhash_get_block_size(int $hash): int|false {}
-/** @return string|false */
-function mhash_get_hash_name(int $hash) {}
+function mhash_get_hash_name(int $hash): string|false {}
-/** @return string|false */
-function mhash_keygen_s2k(int $hash, string $input_password, string $salt, int $bytes) {}
+function mhash_keygen_s2k(int $hash, string $input_password, string $salt, int $bytes): string|false {}
function mhash_count(): int {}
-/** @return string|false */
-function mhash(int $hash, string $data, string $key = UNKNOWN) {}
+function mhash(int $hash, string $data, string $key = UNKNOWN): string|false {}
#endif
class HashContext {
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hash, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_file, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash_file, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hash_hmac, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hash_hmac, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if defined(PHP_MHASH_BC)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mhash_get_block_size, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_get_block_size, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hash, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(PHP_MHASH_BC)
-#define arginfo_mhash_get_hash_name arginfo_mhash_get_block_size
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_get_hash_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, hash, IS_LONG, 0)
+ZEND_END_ARG_INFO()
#endif
#if defined(PHP_MHASH_BC)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mhash_keygen_s2k, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash_keygen_s2k, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hash, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, input_password, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0)
#endif
#if defined(PHP_MHASH_BC)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mhash, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mhash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hash, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
<?php
-/** @return string|false */
-function iconv_strlen(string $str, string $charset = UNKNOWN) {}
+function iconv_strlen(string $str, string $charset = UNKNOWN): string|int|false {}
-/** @return string|false */
-function iconv_substr(string $str, int $offset, ?int $length = null, string $charset = UNKNOWN) {}
+function iconv_substr(string $str, int $offset, ?int $length = null, string $charset = UNKNOWN): string|false {}
-/** @return int|false */
-function iconv_strpos(string $haystack, string $needle, int $offset = 0, string $charset = UNKNOWN) {}
+function iconv_strpos(string $haystack, string $needle, int $offset = 0, string $charset = UNKNOWN): int|false {}
-/** @return int|false */
-function iconv_strrpos(string $haystack, string $needle, string $charset = UNKNOWN) {}
+function iconv_strrpos(string $haystack, string $needle, string $charset = UNKNOWN): int|false {}
-/** @return string|false */
-function iconv_mime_encode(string $field_name, string $field_value, array $preference = []) {}
+function iconv_mime_encode(string $field_name, string $field_value, array $preference = []): string|false {}
-/** @return string|false */
-function iconv_mime_decode(string $encoded_string, int $mode = 0, string $charset = UNKNOWN) {}
+function iconv_mime_decode(string $encoded_string, int $mode = 0, string $charset = UNKNOWN): string|false {}
-/** @return array|false */
-function iconv_mime_decode_headers(string $headers, int $mode = 0, string $charset = UNKNOWN) {}
+function iconv_mime_decode_headers(string $headers, int $mode = 0, string $charset = UNKNOWN): array|false {}
-/** @return string|false */
-function iconv(string $in_charset, string $out_charset, string $str) {}
+function iconv(string $in_charset, string $out_charset, string $str): string|false {}
function iconv_set_encoding(string $type, string $charset): bool {}
-/** @return array|string|false */
-function iconv_get_encoding(string $type = 'all') {}
+function iconv_get_encoding(string $type = 'all'): array|string|false {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_strlen, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_substr, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_substr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 1)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_strpos, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_strrpos, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strrpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_mime_encode, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_encode, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, field_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, field_value, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, preference, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_mime_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, encoded_string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_mime_decode_headers, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode_headers, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, headers, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, in_charset, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, out_charset, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iconv_get_encoding, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_get_encoding, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_END_ARG_INFO()
*/
function imap_close($stream_id, int $options = 0): bool {}
-/**
- * @param resource $stream_id
- * @return int|false
- */
-function imap_num_msg($stream_id) {}
+/** @param resource $stream_id */
+function imap_num_msg($stream_id): int|false {}
-/**
- * @param resource $stream_id
- * @return int|false
- */
-function imap_num_recent($stream_id) {}
+/** @param resource $stream_id */
+function imap_num_recent($stream_id): int|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_headers($stream_id) {}
+/** @param resource $stream_id */
+function imap_headers($stream_id): array|false {}
/**
* @param resource $stream_id
function imap_rfc822_parse_headers(string $headers, string $default_host = 'UNKNOWN'): \stdClass {}
-/**
- * @return string|false
- */
-function imap_rfc822_write_address(string $mailbox, string $host, string $personal) {}
+function imap_rfc822_write_address(string $mailbox, string $host, string $personal): string|false {}
function imap_rfc822_parse_adrlist(string $address_string, string $default_host): array {}
-
-/**
- * @param resource $stream_id
- * @return string|false
- */
-function imap_body($stream_id, int $msg_no, int $options = 0) {}
-
+/** @param resource $stream_id */
+function imap_body($stream_id, int $msg_no, int $options = 0): string|false {}
/**
* @param resource $stream_id
*/
function imap_bodystruct($stream_id, int $msg_no, string $section) {}
-/**
- * @param resource $stream_id
- * @return string|false
- */
-function imap_fetchbody($stream_id, int $msg_no, string $section, int $options = 0) {}
-
-/**
- * @param resource $stream_id
- * @return string|false
- */
-function imap_fetchmime($stream_id, int $msg_no, string $section, int $options = 0) {}
+/** @param resource $stream_id */
+function imap_fetchbody($stream_id, int $msg_no, string $section, int $options = 0): string|false {}
+/** @param resource $stream_id */
+function imap_fetchmime($stream_id, int $msg_no, string $section, int $options = 0): string|false {}
/**
* @param resource $stream_id
*/
function imap_savebody($stream_id, $file, int $msg_no, string $section = '', int $options = 0): bool {}
-/**
- * @param resource $stream_id
- * @return string|false
- */
-function imap_fetchheader($stream_id, int $msg_no, int $options = 0) {}
+/** @param resource $stream_id */
+function imap_fetchheader($stream_id, int $msg_no, int $options = 0): string|false {}
/**
* @param resource $stream_id
*/
function imap_check($stream_id) {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_listscan($stream_id, string $ref, string $pattern, string $content) {}
+/** @param resource $stream_id */
+function imap_listscan($stream_id, string $ref, string $pattern, string $content): array|false {}
/**
* @param resource $stream_id
*/
function imap_mail_move($stream_id, string $sequence, string $mailbox, int $options = 0): bool {}
-/**
- * @return string|false
- */
-function imap_mail_compose(array $envelope, array $body) {}
+function imap_mail_compose(array $envelope, array $body): string|false {}
/**
* @param resource $stream_id
*/
function imap_ping($stream_id): bool {}
-/**
- * @return string|false
- */
-function imap_base64(string $text) {}
+function imap_base64(string $text): string|false {}
-/**
- * @return string|false
- */
-function imap_qprint(string $text) {}
+function imap_qprint(string $text): string|false {}
-/**
- * @return string|false
- */
-function imap_8bit(string $text) {}
+function imap_8bit(string $text): string|false {}
-/**
- * @return string|false
- */
-function imap_binary(string $text) {}
+function imap_binary(string $text): string|false {}
function imap_utf8(string $mime_encoded_text): string {}
*/
function imap_clearflag_full($stream_id, string $sequence, string $flag, int $options = 0): bool {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_sort($stream_id, int $criteria, int $reverse, int $options = 0, string $search_criteria = UNKNOWN, string $charset = UNKNOWN) {}
-
+/** @param resource $stream_id */
+function imap_sort($stream_id, int $criteria, int $reverse, int $options = 0, string $search_criteria = UNKNOWN, string $charset = UNKNOWN): array|false {}
-/**
- * @param resource $stream_id
- * @return int|false
- */
-function imap_uid($stream_id, int $msg_no) {}
-/**
- * @param resource $stream_id
- * @return int|false
- */
-function imap_msgno($stream_id, int $unique_msg_id) {}
+/** @param resource $stream_id */
+function imap_uid($stream_id, int $msg_no): int|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_list($stream_id, string $ref, string $pattern) {}
+/** @param resource $stream_id */
+function imap_msgno($stream_id, int $unique_msg_id): int|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_lsub($stream_id, string $ref, string $pattern) {}
+/** @param resource $stream_id */
+function imap_list($stream_id, string $ref, string $pattern): array|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_getsubscribed($stream_id, string $ref, string $pattern) {}
+/** @param resource $stream_id */
+function imap_lsub($stream_id, string $ref, string $pattern): array|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_getmailboxes($stream_id, string $ref, string $pattern) {}
+/** @param resource $stream_id */
+function imap_getsubscribed($stream_id, string $ref, string $pattern): array|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_fetch_overview($stream_id, string $sequence, int $options = 0) {}
+/** @param resource $stream_id */
+function imap_getmailboxes($stream_id, string $ref, string $pattern): array|false {}
-/**
- * @return array|false
- */
-function imap_alerts() {}
+/** @param resource $stream_id */
+function imap_fetch_overview($stream_id, string $sequence, int $options = 0): array|false {}
-/**
- * @return array|false
- */
-function imap_errors() {}
+function imap_alerts(): array|false {}
-/**
- * @return string|false
- */
-function imap_last_error() {}
+function imap_errors(): array|false {}
+function imap_last_error(): string|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_search($stream_id, string $criteria, int $options = \SE_FREE, string $charset = '') {}
+/** @param resource $stream_id */
+function imap_search($stream_id, string $criteria, int $options = \SE_FREE, string $charset = ''): array|false {}
-/**
- * @return string|false
- */
-function imap_utf7_decode(string $buf) {}
+function imap_utf7_decode(string $buf): string|false {}
function imap_utf7_encode(string $buf): string {}
#ifdef HAVE_IMAP_MUTF7
-/**
- * @return string|false
- */
-function imap_utf8_to_mutf7(string $in) {}
+function imap_utf8_to_mutf7(string $in): string|false {}
-/**
- * @return string|false
- */
-function imap_mutf7_to_utf8(string $in) {}
+function imap_mutf7_to_utf8(string $in): string|false {}
#endif
-/**
- * @return array|false
- */
-function imap_mime_header_decode(string $str) {}
-
+function imap_mime_header_decode(string $str): array|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_thread($stream_id, int $options = \SE_FREE) {}
+/** @param resource $stream_id */
+function imap_thread($stream_id, int $options = \SE_FREE): array|false {}
-/**
- * @return int|bool
- */
-function imap_timeout(int $timeout_type, int $timeout = -1) {}
+function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {}
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_get_quota($stream_id, string $qroot) {}
+/** @param resource $stream_id */
+function imap_get_quota($stream_id, string $qroot): array|false {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_get_quotaroot($stream_id, string $mbox) {}
+/** @param resource $stream_id */
+function imap_get_quotaroot($stream_id, string $mbox): array|false {}
/**
* @param resource $stream_id
*/
function imap_setacl($stream_id, string $mailbox, string $id, string $rights): bool {}
-/**
- * @param resource $stream_id
- * @return array|false
- */
-function imap_getacl($stream_id, string $mailbox) {}
+/** @param resource $stream_id */
+function imap_getacl($stream_id, string $mailbox): array|false {}
#endif
function imap_mail(string $to, string $subject, string $message, string $additional_headers = UNKNOWN, string $cc = UNKNOWN, string $bcc = UNKNOWN, string $rpath = UNKNOWN): bool {}
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_num_msg, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_num_msg, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_END_ARG_INFO()
#define arginfo_imap_num_recent arginfo_imap_num_msg
-#define arginfo_imap_headers arginfo_imap_num_msg
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_headers, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, stream_id)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_headerinfo, 0, 0, 2)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, default_host, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_rfc822_write_address, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_rfc822_write_address, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, personal, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, default_host, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_body, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_body, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, msg_no, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, section, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_fetchbody, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_fetchbody, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, msg_no, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, section, IS_STRING, 0)
#define arginfo_imap_fetchheader arginfo_imap_body
-#define arginfo_imap_fetchstructure arginfo_imap_body
+ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_fetchstructure, 0, 0, 2)
+ ZEND_ARG_INFO(0, stream_id)
+ ZEND_ARG_TYPE_INFO(0, msg_no, IS_LONG, 0)
+ ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_gc, 0, 2, _IS_BOOL, 0)
ZEND_ARG_INFO(0, stream_id)
#define arginfo_imap_undelete arginfo_imap_delete
-#define arginfo_imap_check arginfo_imap_num_msg
+ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_check, 0, 0, 1)
+ ZEND_ARG_INFO(0, stream_id)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_listscan, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_listscan, 0, 4, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, ref, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_mail_compose, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_mail_compose, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, envelope, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, body, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
#define arginfo_imap_ping arginfo_imap_expunge
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_base64, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_base64, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_imap_clearflag_full arginfo_imap_setflag_full
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_sort, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_sort, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, criteria, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, reverse, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_uid, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_uid, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, msg_no, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_msgno, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_msgno, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, unique_msg_id, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_list, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_list, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, ref, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
#define arginfo_imap_getmailboxes arginfo_imap_list
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_fetch_overview, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_fetch_overview, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, sequence, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_alerts, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_alerts, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#define arginfo_imap_errors arginfo_imap_alerts
-#define arginfo_imap_last_error arginfo_imap_alerts
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_last_error, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_search, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_search, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, criteria, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_utf7_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_utf7_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, buf, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if defined(HAVE_IMAP_MUTF7)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_utf8_to_mutf7, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_utf8_to_mutf7, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, in, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#define arginfo_imap_mutf7_to_utf8 arginfo_imap_utf8_to_mutf7
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_mime_header_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_mime_header_decode, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_thread, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_thread, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_timeout, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_timeout, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, timeout_type, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
ZEND_END_ARG_INFO()
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_get_quota, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_get_quota, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, qroot, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_get_quotaroot, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_get_quotaroot, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, mbox, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_getacl, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_getacl, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, stream_id)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
ZEND_END_ARG_INFO()
public function useDaylightTime() {}
}
-/** @return int|false */
-function intltz_count_equivalent_ids(string $zoneId) {}
+function intltz_count_equivalent_ids(string $zoneId): int|false {}
function intltz_create_default(): IntlTimeZone {}
function intltz_from_date_time_zone(DateTimeZone $zone): ?IntlTimeZone {}
-/** @return string|false */
-function intltz_get_canonical_id(string $zoneId, &$isSystemID = null) {}
+function intltz_get_canonical_id(string $zoneId, &$isSystemID = null): string|false {}
-/** @return string|false */
-function intltz_get_display_name(IntlTimeZone $tz, bool $isDaylight = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null) {}
+function intltz_get_display_name(IntlTimeZone $tz, bool $isDaylight = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false {}
-/** @return int|false */
-function intltz_get_dst_savings(IntlTimeZone $tz) {}
+function intltz_get_dst_savings(IntlTimeZone $tz): int|false {}
-/** @return string|false */
-function intltz_get_equivalent_id(string $zoneId, int $index) {}
+function intltz_get_equivalent_id(string $zoneId, int $index): string|false {}
-/** @return int|false */
-function intltz_get_error_code(IntlTimeZone $tz) {}
+function intltz_get_error_code(IntlTimeZone $tz): int|false {}
-/** @return string|false */
-function intltz_get_error_message(IntlTimeZone $tz) {}
+function intltz_get_error_message(IntlTimeZone $tz): string|false {}
function intltz_get_gmt(): IntlTimeZone {}
-/** @return string|false */
-function intltz_get_id(IntlTimeZone $tz) {}
+function intltz_get_id(IntlTimeZone $tz): string|false {}
function intltz_get_offset(IntlTimeZone $tz, float $date, bool $local, &$rawOffset, &$dstOffset): bool {}
-/** @return int|false */
-function intltz_get_raw_offset(IntlTimeZone $tz) {}
+function intltz_get_raw_offset(IntlTimeZone $tz): int|false {}
-/** @return string|false */
-function intltz_get_region(string $zoneId) {}
+function intltz_get_region(string $zoneId): string|false {}
-/** @return string|false */
-function intltz_get_tz_data_version() {}
+function intltz_get_tz_data_version(): string|false {}
function intltz_get_unknown(): IntlTimeZone {}
#if U_ICU_VERSION_MAJOR_NUM >= 52
-/** @return string|false */
-function intltz_get_windows_id(string $timezone) {}
+function intltz_get_windows_id(string $timezone): string|false {}
-/** @return string|false */
-function intltz_get_id_for_windows_id(string $timezone, string $region = UNKNOWN) {}
+function intltz_get_id_for_windows_id(string $timezone, string $region = UNKNOWN): string|false {}
#endif
function intltz_has_same_rules(IntlTimeZone $tz, IntlTimeZone $otherTimeZone): bool {}
#define arginfo_class_IntlTimeZone_useDaylightTime arginfo_class_IntlTimeZone___construct
-#define arginfo_intltz_count_equivalent_ids arginfo_class_IntlTimeZone_countEquivalentIDs
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_count_equivalent_ids, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, zoneId, IS_STRING, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intltz_create_default, 0, 0, IntlTimeZone, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_OBJ_INFO(0, zone, DateTimeZone, 0)
ZEND_END_ARG_INFO()
-#define arginfo_intltz_get_canonical_id arginfo_class_IntlTimeZone_getCanonicalID
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_canonical_id, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, zoneId, IS_STRING, 0)
+ ZEND_ARG_INFO(1, isSystemID)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_intltz_get_display_name, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_display_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
ZEND_ARG_TYPE_INFO(0, isDaylight, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, style, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_intltz_get_dst_savings, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_dst_savings, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
ZEND_END_ARG_INFO()
-#define arginfo_intltz_get_equivalent_id arginfo_class_IntlTimeZone_getEquivalentID
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_equivalent_id, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, zoneId, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
+ZEND_END_ARG_INFO()
#define arginfo_intltz_get_error_code arginfo_intltz_get_dst_savings
-#define arginfo_intltz_get_error_message arginfo_intltz_get_dst_savings
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_error_message, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
+ZEND_END_ARG_INFO()
#define arginfo_intltz_get_gmt arginfo_intltz_create_default
-#define arginfo_intltz_get_id arginfo_intltz_get_dst_savings
+#define arginfo_intltz_get_id arginfo_intltz_get_error_message
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_intltz_get_offset, 0, 5, _IS_BOOL, 0)
ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
#define arginfo_intltz_get_raw_offset arginfo_intltz_get_dst_savings
-#define arginfo_intltz_get_region arginfo_class_IntlTimeZone_countEquivalentIDs
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_region, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, zoneId, IS_STRING, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_intltz_get_tz_data_version arginfo_class_IntlTimeZone___construct
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_tz_data_version, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
#define arginfo_intltz_get_unknown arginfo_intltz_create_default
#if U_ICU_VERSION_MAJOR_NUM >= 52
-#define arginfo_intltz_get_windows_id arginfo_class_IntlTimeZone_getWindowsID
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_windows_id, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, timezone, IS_STRING, 0)
+ZEND_END_ARG_INFO()
#endif
#if U_ICU_VERSION_MAJOR_NUM >= 52
-#define arginfo_intltz_get_id_for_windows_id arginfo_class_IntlTimeZone_getIDForWindowsID
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_intltz_get_id_for_windows_id, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, timezone, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, region, IS_STRING, 0)
+ZEND_END_ARG_INFO()
#endif
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_intltz_has_same_rules, 0, 2, _IS_BOOL, 0)
ZEND_ARG_OBJ_INFO(0, otherTimeZone, IntlTimeZone, 0)
ZEND_END_ARG_INFO()
-#define arginfo_intltz_to_date_time_zone arginfo_intltz_get_dst_savings
+ZEND_BEGIN_ARG_INFO_EX(arginfo_intltz_to_date_time_zone, 0, 0, 1)
+ ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_intltz_use_daylight_time, 0, 1, _IS_BOOL, 0)
ZEND_ARG_OBJ_INFO(0, tz, IntlTimeZone, 0)
<?php
-/** @return string|false */
-function json_encode($value, int $options = 0, int $depth = 512) {}
+function json_encode($value, int $options = 0, int $depth = 512): string|false {}
/** @return mixed */
function json_decode(string $json, ?bool $assoc = null, int $depth = 512, int $options = 0) {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_json_encode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_json_encode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, value)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0)
/**
* @param resource $link_identifier
* @param resource $result_identifier
- * @return array|false
*/
-function ldap_get_entries($link_identifier, $result_identifier) {}
+function ldap_get_entries($link_identifier, $result_identifier): array|false {}
/**
* @param resource $link_identifier
* @param resource $result_entry_identifier
- * @return string|false
*/
-function ldap_first_attribute($link_identifier, $result_entry_identifier, int $dummy_ber = UNKNOWN) {}
+function ldap_first_attribute($link_identifier, $result_entry_identifier, int $dummy_ber = UNKNOWN): string|false {}
/**
* @param resource $link_identifier
* @param resource $result_entry_identifier
- * @return string|false
*/
-function ldap_next_attribute($link_identifier, $result_entry_identifier, int $dummy_ber = UNKNOWN) {}
+function ldap_next_attribute($link_identifier, $result_entry_identifier, int $dummy_ber = UNKNOWN): string|false {}
/**
* @param resource $link_identifier
/**
* @param resource $link_identifier
* @param resource $result_entry_identifier
- * @return array|false
*/
-function ldap_get_values($link_identifier, $result_entry_identifier, string $attribute) {}
+function ldap_get_values($link_identifier, $result_entry_identifier, string $attribute): array|false {}
/**
* @param resource $link_identifier
* @param resource $result_entry_identifier
- * @return array|false
*/
-function ldap_get_values_len($link_identifier, $result_entry_identifier, string $attribute) {}
+function ldap_get_values_len($link_identifier, $result_entry_identifier, string $attribute): array|false {}
/**
* @param resource $link_identifier
* @param resource $result_entry_identifier
- * @return string|false
*/
-function ldap_get_dn($link_identifier, $result_entry_identifier) {}
+function ldap_get_dn($link_identifier, $result_entry_identifier): string|false {}
-/**
- * @return array|false
- */
-function ldap_explode_dn(string $dn, int $with_attrib) {}
+function ldap_explode_dn(string $dn, int $with_attrib): array|false {}
-/**
- * @return string|false
- */
-function ldap_dn2ufn(string $dn) {}
+function ldap_dn2ufn(string $dn): string|false {}
-/**
- * @param resource $link_identifier
- */
+/** @param resource $link_identifier */
function ldap_add($link_identifier, string $dn, array $entry, array $servercontrols = []): bool {}
/**
*/
function ldap_add_ext($link_identifier, string $dn, array $entry, array $servercontrols = []) {}
-/**
- * @param resource $link_identifier
- */
+/** @param resource $link_identifier */
function ldap_delete($link_identifier, string $dn, array $servercontrols = []): bool {}
/**
function ldap_err2str(int $errno): string {}
-/**
- * @param resource $link_identifier
- * @return bool|int
- */
-function ldap_compare($link_identifier, string $dn, string $attribute, string $value, array $servercontrols = []) {}
+/** @param resource $link_identifier */
+function ldap_compare($link_identifier, string $dn, string $attribute, string $value, array $servercontrols = []): bool|int {}
#ifdef LDAP_CONTROL_PAGEDRESULTS
function ldap_escape(string $value, string $ignore = '', int $flags = 0): string {}
#ifdef STR_TRANSLATION
-/**
- * @return string|false
- */
-function ldap_t61_to_8859(string $value) {}
+function ldap_t61_to_8859(string $value): string|false {}
-/**
- * @return string|false
- */
-function ldap_8859_to_t61(string $value) {}
+function ldap_8859_to_t61(string $value): string|false {}
#endif
#endif
#ifdef HAVE_LDAP_PASSWD
-/**
- * @param resource $link
- * @return string|bool
- */
-function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $newpw = '', &$serverctrls = null) {}
+/** @param resource $link */
+function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $newpw = '', &$serverctrls = null): string|bool {}
#endif
#ifdef HAVE_LDAP_WHOAMI_S
-/**
- * @param resource $link
- * @return string|bool
- */
-function ldap_exop_whoami($link) {}
+/** @param resource $link */
+function ldap_exop_whoami($link): string|bool {}
#endif
#ifdef HAVE_LDAP_REFRESH_S
-/**
- * @param resource $link
- * @return int|false
- */
-function ldap_exop_refresh($link, string $dn, $ttl) {}
+/** @param resource $link */
+function ldap_exop_refresh($link, string $dn, $ttl): int|false {}
#endif
*/
function ldap_parse_exop($link, $result, &$retdata = null, &$retoid = null): bool {}
#endif
-
#define arginfo_ldap_next_entry arginfo_ldap_first_entry
-#define arginfo_ldap_get_entries arginfo_ldap_first_entry
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_get_entries, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, link_identifier)
+ ZEND_ARG_INFO(0, result_identifier)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_first_attribute, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_first_attribute, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, link_identifier)
ZEND_ARG_INFO(0, result_entry_identifier)
ZEND_ARG_TYPE_INFO(0, dummy_ber, IS_LONG, 0)
ZEND_ARG_INFO(0, result_entry_identifier)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_get_values, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_get_values, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, link_identifier)
ZEND_ARG_INFO(0, result_entry_identifier)
ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0)
#define arginfo_ldap_get_values_len arginfo_ldap_get_values
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_get_dn, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_get_dn, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, link_identifier)
ZEND_ARG_INFO(0, result_entry_identifier)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_explode_dn, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_explode_dn, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, with_attrib, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_dn2ufn, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_dn2ufn, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, errno, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_compare, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_compare, 0, 4, MAY_BE_BOOL|MAY_BE_LONG)
ZEND_ARG_INFO(0, link_identifier)
ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, attribute, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if defined(STR_TRANSLATION)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_t61_to_8859, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_t61_to_8859, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#endif
#if defined(HAVE_LDAP_PASSWD)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_exop_passwd, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_passwd, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_INFO(0, link)
ZEND_ARG_TYPE_INFO(0, user, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, oldpw, IS_STRING, 0)
#endif
#if defined(HAVE_LDAP_WHOAMI_S)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_exop_whoami, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_whoami, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_INFO(0, link)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_LDAP_REFRESH_S)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_exop_refresh, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ldap_exop_refresh, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, link)
ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0)
ZEND_ARG_INFO(0, ttl)
<?php
-/** @return string|false */
-function mb_language(string $language = UNKNOWN) {}
+function mb_language(string $language = UNKNOWN): string|bool {}
-/** @return string|false */
-function mb_internal_encoding(string $encoding = UNKNOWN) {}
+function mb_internal_encoding(string $encoding = UNKNOWN): string|bool {}
-/** @return array|string|false */
-function mb_http_input(string $type = UNKNOWN) {}
+function mb_http_input(string $type = UNKNOWN): array|string|false {}
-/** @return string|false */
-function mb_http_output(string $encoding = UNKNOWN) {}
+function mb_http_output(string $encoding = UNKNOWN): string|bool {}
-/** @return array|bool */
-function mb_detect_order($encoding = UNKNOWN) {}
+function mb_detect_order($encoding = UNKNOWN): array|bool {}
-/** @return string|int|bool */
-function mb_substitute_character($substchar = UNKNOWN) {}
+function mb_substitute_character($substchar = UNKNOWN): string|int|bool {}
-/** @return string|false */
-function mb_preferred_mime_name(string $encoding) {}
+function mb_preferred_mime_name(string $encoding): string|false {}
function mb_parse_str(string $encoded_string, &$result): bool {}
function mb_output_handler(string $contents, int $status): string {}
-/** @return array|false */
-function mb_str_split(string $str, int $split_length = 1, string $encoding = UNKNOWN) {}
+function mb_str_split(string $str, int $split_length = 1, string $encoding = UNKNOWN): array|false {}
-/** @return int|false */
-function mb_strlen(string $str, string $encoding = UNKNOWN) {}
+function mb_strlen(string $str, string $encoding = UNKNOWN): int|false {}
-/** @return int|false */
-function mb_strpos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN) {}
+function mb_strpos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
-/** @return int|false */
-function mb_strrpos(string $haystack, string $needle, $offset = UNBEK, string $encoding = UNKNOWN) {}
+function mb_strrpos(string $haystack, string $needle, $offset = UNBEK, string $encoding = UNKNOWN): int|false {}
-/** @return int|false */
-function mb_stripos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN) {}
+function mb_stripos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
-/** @return int|false */
-function mb_strripos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN) {}
+function mb_strripos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
-/** @return string|false */
-function mb_strstr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN) {}
+function mb_strstr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN): string|false {}
-/** @return string|false */
-function mb_strrchr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN) {}
+function mb_strrchr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN): string|false {}
-/** @return string|false */
-function mb_stristr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN) {}
+function mb_stristr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN): string|false {}
-/** @return string|false */
-function mb_strrichr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN) {}
+function mb_strrichr(string $haystack, string $needle, bool $part = false, string $encoding = UNKNOWN): string|false {}
-/** @return int|false */
-function mb_substr_count(string $haystack, string $needle, string $encoding = UNKNOWN) {}
+function mb_substr_count(string $haystack, string $needle, string $encoding = UNKNOWN): int|false {}
-/** @return string|false */
-function mb_substr(string $str, int $start, ?int $length = null, string $encoding = UNKNOWN) {}
+function mb_substr(string $str, int $start, ?int $length = null, string $encoding = UNKNOWN): string|false {}
-/** @return string|false */
-function mb_strcut(string $str, int $start, ?int $length = null, string $encoding = UNKNOWN) {}
+function mb_strcut(string $str, int $start, ?int $length = null, string $encoding = UNKNOWN): string|false {}
-/** @return int|false */
-function mb_strwidth(string $str, string $encoding = UNKNOWN) {}
+function mb_strwidth(string $str, string $encoding = UNKNOWN): int|false {}
-/** @return string|false */
-function mb_strimwidth(string $str, int $start, int $width, string $trimmarker = UNKNOWN, string $encoding = UNKNOWN) {}
+function mb_strimwidth(string $str, int $start, int $width, string $trimmarker = UNKNOWN, string $encoding = UNKNOWN): string|false {}
-/**
- * @param array|string $str
- * @return array|string|false
- */
-function mb_convert_encoding($str, string $to, $from = UNKNOWN) {}
+/** @param array|string $str */
+function mb_convert_encoding($str, string $to, $from = UNKNOWN): array|string|false {}
-/** @return string|false */
-function mb_convert_case(string $sourcestring, int $mode, ?string $encoding = null) {}
+function mb_convert_case(string $sourcestring, int $mode, ?string $encoding = null): string|false {}
-/** @return string|false */
-function mb_strtoupper(string $sourcestring, ?string $encoding = null) {}
+function mb_strtoupper(string $sourcestring, ?string $encoding = null): string|false {}
-/** @return string|false */
-function mb_strtolower(string $sourcestring, ?string $encoding = null) {}
+function mb_strtolower(string $sourcestring, ?string $encoding = null): string|false {}
-/**
- * @param array|string $encoding_list
- * @return string|false
- */
-function mb_detect_encoding(string $str, $encoding_list = null, bool $strict = false) {}
+/** @param array|string $encoding_list */
+function mb_detect_encoding(string $str, $encoding_list = null, bool $strict = false): string|false {}
function mb_list_encodings(): array {}
-/** @return array|false */
-function mb_encoding_aliases(string $encoding) {}
+function mb_encoding_aliases(string $encoding): array|false {}
-/** @return string|false */
-function mb_encode_mimeheader(string $str, string $charset = UNKNOWN, string $transfer = UNKNOWN, string $linefeed = UNKNOWN, int $indent = 0) {}
+function mb_encode_mimeheader(string $str, string $charset = UNKNOWN, string $transfer = UNKNOWN, string $linefeed = UNKNOWN, int $indent = 0): string|false {}
-/** @return string|false */
-function mb_decode_mimeheader(string $string) {}
+function mb_decode_mimeheader(string $string): string|false {}
-/** @return string|false */
-function mb_convert_kana(string $str, string $option = UNKNOWN, string $encoding = UNKNOWN) {}
+function mb_convert_kana(string $str, string $option = UNKNOWN, string $encoding = UNKNOWN): string|false {}
-/**
- * @param array|string $from
- * @return string|false
- */
-function mb_convert_variables(string $to, $from, &$var, &...$vars) {}
+/** @param array|string $from */
+function mb_convert_variables(string $to, $from, &$var, &...$vars): string|false {}
-/** @return string|false */
-function mb_encode_numericentity(string $string, array $convmap, string $encoding = UNKNOWN, bool $is_hex = false) {}
+function mb_encode_numericentity(string $string, array $convmap, string $encoding = UNKNOWN, bool $is_hex = false): string|false {}
-/** @return string|false */
-function mb_decode_numericentity(string $string, array $convmap, string $encoding = UNKNOWN) {}
+function mb_decode_numericentity(string $string, array $convmap, string $encoding = UNKNOWN): string|false {}
function mb_send_mail(string $to, string $subject, string $message, $additional_headers = UNKNOWN, string $additional_parameters = UNKNOWN): bool {}
-/** @return array|string|int|false */
-function mb_get_info(string $type = UNKNOWN) {}
+function mb_get_info(string $type = UNKNOWN): array|string|int|false {}
function mb_check_encoding($var = UNBEK, string $encoding = UNKNOWN): bool {}
-/** @return string|false */
-function mb_scrub(string $str, string $encoding = UNKNOWN) {}
+function mb_scrub(string $str, string $encoding = UNKNOWN): string|false {}
-/** @return int|false */
-function mb_ord(string $str, string $encoding = UNKNOWN) {}
+function mb_ord(string $str, string $encoding = UNKNOWN): int|false {}
-/** @return string|false */
-function mb_chr(int $cp, string $encoding = UNKNOWN) {}
+function mb_chr(int $cp, string $encoding = UNKNOWN): string|false {}
#if HAVE_MBREGEX
-/** @return string|bool */
-function mb_regex_encoding(string $encoding = UNKNOWN) {}
+function mb_regex_encoding(string $encoding = UNKNOWN): string|bool {}
-/** @return int|false */
-function mb_ereg(string $pattern, string $string, &$registers = UNKNOWN) {}
+function mb_ereg(string $pattern, string $string, &$registers = UNKNOWN): int|false {}
-/** @return int|false */
-function mb_eregi(string $pattern, string $string, &$registers = UNKNOWN) {}
+function mb_eregi(string $pattern, string $string, &$registers = UNKNOWN): int|false {}
-/** @return string|false|null */
-function mb_ereg_replace(string $pattern, string $replacement, string $string, string $option = UNKNOWN) {}
+function mb_ereg_replace(string $pattern, string $replacement, string $string, string $option = UNKNOWN): string|false|null {}
-/** @return string|false|null */
-function mb_eregi_replace(string $pattern, string $replacement, string $string, string $option = UNKNOWN) {}
+function mb_eregi_replace(string $pattern, string $replacement, string $string, string $option = UNKNOWN): string|false|null {}
-/** @return string|false|null */
-function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, string $option = UNKNOWN) {}
+function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, string $option = UNKNOWN): string|false|null {}
-/** @return array|false */
-function mb_split(string $pattern, string $string, int $limit = -1) {}
+function mb_split(string $pattern, string $string, int $limit = -1): array|false {}
function mb_ereg_match(string $pattern, string $string, string $option = UNKNOWN): bool {}
-/** @return array|bool */
-function mb_ereg_search(string $pattern = UNKNOWN, string $option = UNKNOWN) {}
+function mb_ereg_search(string $pattern = UNKNOWN, string $option = UNKNOWN): array|bool {}
-/** @return array|bool */
-function mb_ereg_search_pos(string $pattern = UNKNOWN, string $option = UNKNOWN) {}
+function mb_ereg_search_pos(string $pattern = UNKNOWN, string $option = UNKNOWN): array|bool {}
-/** @return array|bool */
-function mb_ereg_search_regs(string $pattern = UNKNOWN, string $option = UNKNOWN) {}
+function mb_ereg_search_regs(string $pattern = UNKNOWN, string $option = UNKNOWN): array|bool {}
function mb_ereg_search_init(string $string, string $pattern = UNKNOWN, string $option = UNKNOWN): bool {}
-/** @return array|false */
-function mb_ereg_search_getregs() {}
+function mb_ereg_search_getregs(): array|false {}
function mb_ereg_search_getpos(): int {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_language, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_language, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_internal_encoding, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_internal_encoding, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_http_input, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_http_input, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_mb_http_output arginfo_mb_internal_encoding
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_detect_order, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_detect_order, 0, 0, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_INFO(0, encoding)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_substitute_character, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_substitute_character, 0, 0, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_INFO(0, substchar)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_preferred_mime_name, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_preferred_mime_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_str_split, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_str_split, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, split_length, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strlen, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strpos, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strrpos, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strrpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_INFO(0, offset)
#define arginfo_mb_strripos arginfo_mb_strpos
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strstr, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strstr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, part, _IS_BOOL, 0)
#define arginfo_mb_strrichr arginfo_mb_strstr
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_substr_count, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_substr_count, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_substr, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_substr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 1)
#define arginfo_mb_strwidth arginfo_mb_strlen
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strimwidth, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strimwidth, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_convert_encoding, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_encoding, 0, 2, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, str)
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
ZEND_ARG_INFO(0, from)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_convert_case, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_case, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, sourcestring, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_strtoupper, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strtoupper, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, sourcestring, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 1)
ZEND_END_ARG_INFO()
#define arginfo_mb_strtolower arginfo_mb_strtoupper
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_detect_encoding, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_detect_encoding, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_INFO(0, encoding_list)
ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_list_encodings, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-#define arginfo_mb_encoding_aliases arginfo_mb_preferred_mime_name
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_encoding_aliases, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_encode_mimeheader, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_encode_mimeheader, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, charset, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, transfer, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, indent, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_decode_mimeheader, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_decode_mimeheader, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_convert_kana, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_kana, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_convert_variables, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_variables, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
ZEND_ARG_INFO(0, from)
ZEND_ARG_INFO(1, var)
ZEND_ARG_VARIADIC_INFO(1, vars)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_encode_numericentity, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_encode_numericentity, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, convmap, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, is_hex, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_decode_numericentity, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_decode_numericentity, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, convmap, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, additional_parameters, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_mb_get_info arginfo_mb_http_input
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_get_info, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_check_encoding, 0, 0, _IS_BOOL, 0)
ZEND_ARG_INFO(0, var)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_mb_scrub arginfo_mb_strlen
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_scrub, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
+ZEND_END_ARG_INFO()
#define arginfo_mb_ord arginfo_mb_strlen
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_chr, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_chr, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, cp, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_regex_encoding, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_regex_encoding, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_ereg, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_INFO(1, registers)
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_ereg_replace, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_replace, 0, 3, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, replacement, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_ereg_replace_callback, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_replace_callback, 0, 3, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_split, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_split, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_ereg_search, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_search, 0, 0, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if HAVE_MBREGEX
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_ereg_search_getregs, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_search_getregs, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
/** @param resource $result_id */
function odbc_execute($result_id, array $parameters_array = UNKNOWN): bool {}
-/**
- * @param resource $result_id
- * @return string|false
- */
-function odbc_cursor($result_id) {}
+/** @param resource $result_id */
+function odbc_cursor($result_id): string|false {}
#ifdef HAVE_SQLDATASOURCES
-/**
- * @param resource $connection_id
- * @return array|false
- */
-function odbc_data_source($connection_id, int $fetch_type) {}
+/** @param resource $connection_id */
+function odbc_data_source($connection_id, int $fetch_type): array|false {}
#endif
/**
*/
function odbc_fetch_object($result, int $rownumber = -1) {}
-/**
- * @param resource $result
- * @return array|false
- */
-function odbc_fetch_array($result, int $rownumber = -1) {}
+/** @param resource $result */
+function odbc_fetch_array($result, int $rownumber = -1): array|false {}
#endif
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_fetch_into($result_id, &$result_array, int $rownumber = 0) {}
+/** @param resource $result_id */
+function odbc_fetch_into($result_id, &$result_array, int $rownumber = 0): int|false {}
/** @param resource $result_id */
function odbc_fetch_row($result_id, int $row_number = UNKNOWN): bool {}
/**
* @param resource $result_id
* @param string|int $field
- * @return string|bool|null
*/
-function odbc_result($result_id, $field) {}
+function odbc_result($result_id, $field): string|bool|null {}
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_result_all($result_id, string $format = '') {}
+/** @param resource $result_id */
+function odbc_result_all($result_id, string $format = ''): int|false {}
/** @param resource $result_id */
function odbc_free_result($result_id): bool {}
/** @param resource $result_id */
function odbc_num_fields($result_id): int {}
-/**
- * @param resource $result_id
- * @return string|false
- */
-function odbc_field_name($result_id, int $field_number) {}
+/** @param resource $result_id */
+function odbc_field_name($result_id, int $field_number): string|false {}
-/**
- * @param resource $result_id
- * @return string|false
- */
-function odbc_field_type($result_id, int $field_number) {}
+/** @param resource $result_id */
+function odbc_field_type($result_id, int $field_number): string|false {}
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_field_len($result_id, int $field_number) {}
+/** @param resource $result_id */
+function odbc_field_len($result_id, int $field_number): int|false {}
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_field_precision($result_id, int $field_number) {}
+/** @param resource $result_id */
+function odbc_field_precision($result_id, int $field_number): int|false {}
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_field_scale($result_id, int $field_number) {}
+/** @param resource $result_id */
+function odbc_field_scale($result_id, int $field_number): int|false {}
-/**
- * @param resource $result_id
- * @return int|false
- */
-function odbc_field_num($result_id, string $field_name) {}
+/** @param resource $result_id */
+function odbc_field_num($result_id, string $field_name): int|false {}
-/**
- * @param resource $connection_id
- * @return int|bool
- */
-function odbc_autocommit($connection_id, int $onoff = 0) {}
+/** @param resource $connection_id */
+function odbc_autocommit($connection_id, int $onoff = 0): int|bool {}
/** @param resource $connection_id */
function odbc_commit($connection_id): bool {}
ZEND_ARG_TYPE_INFO(0, parameters_array, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_cursor, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_cursor, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result_id)
ZEND_END_ARG_INFO()
#if defined(HAVE_SQLDATASOURCES)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_data_source, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_data_source, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, connection_id)
ZEND_ARG_TYPE_INFO(0, fetch_type, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(PHP_ODBC_HAVE_FETCH_HASH)
-#define arginfo_odbc_fetch_array arginfo_odbc_fetch_object
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, result)
+ ZEND_ARG_TYPE_INFO(0, rownumber, IS_LONG, 0)
+ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_fetch_into, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_fetch_into, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result_id)
ZEND_ARG_INFO(1, result_array)
ZEND_ARG_TYPE_INFO(0, rownumber, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, row_number, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_result, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result, 0, 2, MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
ZEND_ARG_INFO(0, result_id)
ZEND_ARG_INFO(0, field)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_result_all, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result_all, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result_id)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_odbc_num_fields arginfo_odbc_num_rows
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_field_name, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_field_name, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result_id)
ZEND_ARG_TYPE_INFO(0, field_number, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_odbc_field_type arginfo_odbc_field_name
-#define arginfo_odbc_field_len arginfo_odbc_field_name
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_field_len, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, result_id)
+ ZEND_ARG_TYPE_INFO(0, field_number, IS_LONG, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_odbc_field_precision arginfo_odbc_field_name
+#define arginfo_odbc_field_precision arginfo_odbc_field_len
-#define arginfo_odbc_field_scale arginfo_odbc_field_name
+#define arginfo_odbc_field_scale arginfo_odbc_field_len
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_field_num, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_field_num, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result_id)
ZEND_ARG_TYPE_INFO(0, field_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_odbc_autocommit, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_autocommit, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_INFO(0, connection_id)
ZEND_ARG_TYPE_INFO(0, onoff, IS_LONG, 0)
ZEND_END_ARG_INFO()
function opcache_reset(): bool {}
-/** @return array|false */
-function opcache_get_status(bool $fetch_scripts = true) {}
+function opcache_get_status(bool $fetch_scripts = true): array|false {}
function opcache_compile_file(string $file): bool {}
function opcache_invalidate(string $script, bool $force = false): bool {}
-/** @return array|false */
-function opcache_get_configuration() {}
+function opcache_get_configuration(): array|false {}
function opcache_is_script_cached(string $script): bool {}
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_reset, 0, 0, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_opcache_get_status, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_opcache_get_status, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, fetch_scripts, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, force, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_opcache_get_configuration, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_opcache_get_configuration, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_is_script_cached, 0, 1, _IS_BOOL, 0)
function openssl_x509_export($x509 , &$out, bool $notext = true): bool {}
-/** @return string|false */
-function openssl_x509_fingerprint($x509, string $method = 'sha1', bool $raw_output = false) {}
+function openssl_x509_fingerprint($x509, string $method = 'sha1', bool $raw_output = false): string|false {}
function openssl_x509_check_private_key($cert, $key): bool {}
function openssl_x509_verify($cert, $key): int {}
-/** @return array|false */
-function openssl_x509_parse($x509, bool $shortname = true) {}
+function openssl_x509_parse($x509, bool $shortname = true): array|false {}
-/** @return bool|int */
-function openssl_x509_checkpurpose($x509cert, int $purpose, ?array $cainfo = [], string $untrustedfile = UNKNOWN) {}
+function openssl_x509_checkpurpose($x509cert, int $purpose, ?array $cainfo = [], string $untrustedfile = UNKNOWN): bool|int {}
/** @return resource|false */
function openssl_x509_read($cert) {}
-/** @return false|void */
-function openssl_x509_free($x509) {}
+function openssl_x509_free($x509): ?bool {}
/**
* @param resource|string $x509cert
/** @return resource|false */
function openssl_csr_new(array $dn, &$privkey, ?array $configargs = null, ?array $extraattribs = null) {}
-/**
- * @param resource|string $csr
- * @return array|false
- */
-function openssl_csr_get_subject($csr, bool $use_shortnames = true) {}
+/** @param resource|string $csr */
+function openssl_csr_get_subject($csr, bool $use_shortnames = true): array|false {}
/**
* @param resource|string $csr
/** @param resource|string|array $key */
function openssl_pkey_export($key, &$out, ?string $passphrase = null, ?array $configargs = null): bool {}
-/**
+/**
* @param resource|string|array $cert
* @return resource|false
*/
*/
function openssl_pkey_get_private($key, string $passphrase = UNKNOWN) {}
-/**
- * @param resource $key
- * @return array|false
- */
-function openssl_pkey_get_details($key) {}
+/** @param resource $key */
+function openssl_pkey_get_details($key): array|false {}
-/** @return string|false */
-function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algorithm = 'sha1') {}
+function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algorithm = 'sha1'): string|false {}
-/** @return bool|int */
-function openssl_pkcs7_verify(string $filename, int $flags, string $signerscerts = UNKNOWN, array $cainfo = UNKNOWN, string $extracerts = UNKNOWN, string $content = UNKNOWN, string $pk7 = UNKNOWN) {}
+function openssl_pkcs7_verify(string $filename, int $flags, string $signerscerts = UNKNOWN, array $cainfo = UNKNOWN, string $extracerts = UNKNOWN, string $content = UNKNOWN, string $pk7 = UNKNOWN): bool|int {}
/** @param resource|string|array $recipcerts */
function openssl_pkcs7_encrypt(string $infile, string $outfile, $recipcerts, ?array $headers, int $flags = 0, int $cipher = OPENSSL_CIPHER_RC2_40): bool {}
/** @param resource|string|array $key */
function openssl_public_decrypt(string $data, &$crypted, $key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
-/** @return string|false */
-function openssl_error_string() {}
+function openssl_error_string(): string|false {}
/**
* @param resource|string|array $key
/**
* @param resource|string|array $key
* @param int|string $method
- * @return int|false
*/
-function openssl_verify(string $data, string $signature, $key, $method = OPENSSL_ALGO_SHA1) {}
+function openssl_verify(string $data, string $signature, $key, $method = OPENSSL_ALGO_SHA1): int|false {}
-/** @return int|false */
-function openssl_seal(string $data, &$sealdata, &$ekeys, array $pubkeys, string $method = UNKNOWN, &$iv = UNKNOWN) {}
+function openssl_seal(string $data, &$sealdata, &$ekeys, array $pubkeys, string $method = UNKNOWN, &$iv = UNKNOWN): int|false {}
/** @param resource|string|array $privkey */
function openssl_open(string $data, &$opendata, string $ekey, $privkey, string $method = UNKNOWN, string $iv = UNKNOWN): bool {}
function openssl_get_cipher_methods($aliases = false): array {}
#ifdef HAVE_EVP_PKEY_EC
-/** @return array|false */
-function openssl_get_curve_names() {}
+function openssl_get_curve_names(): array|false {}
#endif
-/** @return string|false */
-function openssl_digest(string $data, string $method, bool $raw_output = false) {}
+function openssl_digest(string $data, string $method, bool $raw_output = false): string|false {}
-/** @return string|false */
-function openssl_encrypt(string $data, string $method, string $password, int $options = 0, string $iv = '', &$tag = UNKNOWN, string $aad = '', int $tag_length = 16) {}
+function openssl_encrypt(string $data, string $method, string $password, int $options = 0, string $iv = '', &$tag = UNKNOWN, string $aad = '', int $tag_length = 16): string|false {}
-/** @return string|false */
-function openssl_decrypt(string $data, string $method, string $password, int $options = 0, string $iv = '', string $tag = UNKNOWN, string $aad = '') {}
+function openssl_decrypt(string $data, string $method, string $password, int $options = 0, string $iv = '', string $tag = UNKNOWN, string $aad = ''): string|false {}
-/** @return int|false */
-function openssl_cipher_iv_length(string $method) {}
+function openssl_cipher_iv_length(string $method): int|false {}
-/**
- * @param resource $dh_key
- * @return string|false
- */
-function openssl_dh_compute_key(string $pub_key, $dh_key) {}
+/** @param resource $dh_key */
+function openssl_dh_compute_key(string $pub_key, $dh_key): string|false {}
/**
* @param resource|string|array $peer_pub_key
* @param resource|string|array $priv_key
- * @return string|false
*/
-function openssl_pkey_derive($peer_pub_key, $priv_key, int $keylen = 0) {}
+function openssl_pkey_derive($peer_pub_key, $priv_key, int $keylen = 0): string|false {}
function openssl_random_pseudo_bytes(int $length, &$result_is_strong = UNKNOWN): string {}
-/**
- * @param resource $privkey
- * @return string|false
- */
-function openssl_spki_new($privkey, string $challenge, int $algo = OPENSSL_ALGO_MD5) {}
+/** @param resource $privkey */
+function openssl_spki_new($privkey, string $challenge, int $algo = OPENSSL_ALGO_MD5): string|false {}
function openssl_spki_verify(string $spki): bool {}
-/** @return string|false */
-function openssl_spki_export(string $spki) {}
+function openssl_spki_export(string $spki): string|false {}
-/** @return string|false */
-function openssl_spki_export_challenge(string $spki) {}
+function openssl_spki_export_challenge(string $spki): string|false {}
function openssl_get_cert_locations(): array {}
ZEND_ARG_TYPE_INFO(0, notext, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_fingerprint, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_x509_fingerprint, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, x509)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_ARG_INFO(0, key)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_parse, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_x509_parse, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, x509)
ZEND_ARG_TYPE_INFO(0, shortname, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_checkpurpose, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_x509_checkpurpose, 0, 2, MAY_BE_BOOL|MAY_BE_LONG)
ZEND_ARG_INFO(0, x509cert)
ZEND_ARG_TYPE_INFO(0, purpose, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, cainfo, IS_ARRAY, 1)
ZEND_ARG_INFO(0, cert)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_x509_free, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_free, 0, 1, _IS_BOOL, 1)
ZEND_ARG_INFO(0, x509)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, extraattribs, IS_ARRAY, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_get_subject, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_csr_get_subject, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, csr)
ZEND_ARG_TYPE_INFO(0, use_shortnames, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-#define arginfo_openssl_csr_get_public_key arginfo_openssl_csr_get_subject
+ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_csr_get_public_key, 0, 0, 1)
+ ZEND_ARG_INFO(0, csr)
+ ZEND_ARG_TYPE_INFO(0, use_shortnames, _IS_BOOL, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_new, 0, 0, 0)
ZEND_ARG_TYPE_INFO(0, configargs, IS_ARRAY, 1)
ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_get_details, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pkey_get_details, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, key)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pbkdf2, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pbkdf2, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, key_length, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, digest_algorithm, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkcs7_verify, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pkcs7_verify, 0, 2, MAY_BE_BOOL|MAY_BE_LONG)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, signerscerts, IS_STRING, 0)
#define arginfo_openssl_public_decrypt arginfo_openssl_private_encrypt
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_error_string, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_error_string, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_sign, 0, 3, _IS_BOOL, 0)
ZEND_ARG_INFO(0, method)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_verify, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_verify, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, signature, IS_STRING, 0)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, method)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_seal, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_seal, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_INFO(1, sealdata)
ZEND_ARG_INFO(1, ekeys)
#define arginfo_openssl_get_cipher_methods arginfo_openssl_get_md_methods
#if defined(HAVE_EVP_PKEY_EC)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_get_curve_names, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_get_curve_names, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_digest, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_digest, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_encrypt, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_encrypt, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, tag_length, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_decrypt, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_decrypt, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, aad, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_cipher_iv_length, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_cipher_iv_length, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_dh_compute_key, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_dh_compute_key, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pub_key, IS_STRING, 0)
ZEND_ARG_INFO(0, dh_key)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_pkey_derive, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_pkey_derive, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, peer_pub_key)
ZEND_ARG_INFO(0, priv_key)
ZEND_ARG_TYPE_INFO(0, keylen, IS_LONG, 0)
ZEND_ARG_INFO(1, result_is_strong)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_spki_new, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_spki_new, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, privkey)
ZEND_ARG_TYPE_INFO(0, challenge, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, spki, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_openssl_spki_export, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_spki_export, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, spki, IS_STRING, 0)
ZEND_END_ARG_INFO()
#ifdef HAVE_STRUCT_SIGINFO_T
#if HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
-/** @return int|false */
-function pcntl_sigwaitinfo(array $set, &$info = []) {}
+function pcntl_sigwaitinfo(array $set, &$info = []): int|false {}
-/** @return int|false */
-function pcntl_sigtimedwait(array $set, &$info = [], int $seconds = 0, int $nanoseconds = 0) {}
+function pcntl_sigtimedwait(array $set, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
#endif
#endif
function pcntl_wifsignaled(int $status): bool {}
-/** @return int|false */
-function pcntl_wifexitstatus(int $status) {}
+function pcntl_wifexitstatus(int $status): int|false {}
-/** @return int|false */
-function pcntl_wtermsig(int $status) {}
+function pcntl_wtermsig(int $status): int|false {}
-/** @return int|false */
-function pcntl_wstopsig(int $status) {}
+function pcntl_wstopsig(int $status): int|false {}
-/** @return false */
function pcntl_exec(string $path, array $args = [], array $envs = []): bool {}
function pcntl_alarm(int $seconds): int {}
function pcntl_get_last_error(): int {}
#ifdef HAVE_GETPRIORITY
-/** @return int|false */
-function pcntl_getpriority(int $pid = UNKNOWN, int $process_identifier = PRIO_PROCESS) {}
+function pcntl_getpriority(int $pid = UNKNOWN, int $process_identifier = PRIO_PROCESS): int|false {}
#endif
#ifdef HAVE_SETPRIORITY
#endif
#if defined(HAVE_STRUCT_SIGINFO_T) && HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_sigwaitinfo, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigwaitinfo, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, set, IS_ARRAY, 0)
ZEND_ARG_INFO(1, info)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_STRUCT_SIGINFO_T) && HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_sigtimedwait, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigtimedwait, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, set, IS_ARRAY, 0)
ZEND_ARG_INFO(1, info)
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
#define arginfo_pcntl_wifsignaled arginfo_pcntl_wifexited
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_wifexitstatus, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_wifexitstatus, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_pcntl_get_last_error arginfo_pcntl_fork
#if defined(HAVE_GETPRIORITY)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_getpriority, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_getpriority, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pid, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, process_identifier, IS_LONG, 0)
ZEND_END_ARG_INFO()
<?php
-/** @return int|false */
-function preg_match(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0) {}
+function preg_match(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false {}
-/** @return int|false */
-function preg_match_all(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0) {}
+function preg_match_all(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false|null {}
/**
* @param string|array $regex
* @param string|array $replace
* @param string|array $subject
- * @return string|array|null
*/
-function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null) {}
+function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param string|array $regex
* @param string|array $replace
* @param string|array $subject
- * @return string|array|null
*/
-function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null) {}
+function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param string|array $regex
* @param string|array $subject
- * @return string|array|null
*
* TODO: $callback should be `callable`
*/
-function preg_replace_callback($regex, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0) {}
+function preg_replace_callback($regex, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
-/**
- * @param string|array $subject
- * @return string|array|null
- */
-function preg_replace_callback_array(array $pattern, $subject, int $limit = -1, &$count = null, int $flags = 0) {}
+/** @param string|array $subject */
+function preg_replace_callback_array(array $pattern, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
-/**
- * @return array|false
- */
-function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0) {}
+function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
function preg_quote(string $str, ?string $delim_char = null): string {}
-/** @return array|false */
-function preg_grep(string $regex, array $input, int $flags = 0) {}
-
+function preg_grep(string $regex, array $input, int $flags = 0): array|false {}
function preg_last_error(): int {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_match, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_match, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
ZEND_ARG_INFO(1, subpatterns)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_preg_match_all arginfo_preg_match
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_match_all, 0, 2, MAY_BE_LONG|MAY_BE_FALSE|MAY_BE_NULL)
+ ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
+ ZEND_ARG_INFO(1, subpatterns)
+ ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
+ ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_replace, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
ZEND_ARG_INFO(0, regex)
ZEND_ARG_INFO(0, replace)
ZEND_ARG_INFO(0, subject)
#define arginfo_preg_filter arginfo_preg_replace
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_replace_callback, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace_callback, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
ZEND_ARG_INFO(0, regex)
ZEND_ARG_INFO(0, callback)
ZEND_ARG_INFO(0, subject)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_replace_callback_array, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace_callback_array, 0, 2, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, pattern, IS_ARRAY, 0)
ZEND_ARG_INFO(0, subject)
ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_split, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_split, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, delim_char, IS_STRING, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_preg_grep, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_grep, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, regex, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, input, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
#endif
#ifdef HAVE_GETGROUPS
-/** @return array|false */
-function posix_getgroups() {}
+function posix_getgroups(): array|false {}
#endif
#ifdef HAVE_GETLOGIN
-/** @return string|false */
-function posix_getlogin() {}
+function posix_getlogin(): string|false {}
#endif
function posix_getpgrp(): int {}
function posix_setpgid(int $pid, int $pgid): bool {}
#ifdef HAVE_GETPGID
-/** @return int|false */
-function posix_getpgid(int $pid) {}
+function posix_getpgid(int $pid): int|false {}
#endif
#ifdef HAVE_GETSID
-/** @return int|false */
-function posix_getsid(int $pid) {}
+function posix_getsid(int $pid): int|false {}
#endif
-/** @return array|false */
-function posix_uname() {}
+function posix_uname(): array|false {}
-/** @return array|false */
-function posix_times() {}
+function posix_times(): array|false {}
#ifdef HAVE_CTERMID
-/** @return string|false */
-function posix_ctermid() {}
+function posix_ctermid(): string|false {}
#endif
-/**
- * @return string|false
- */
-function posix_ttyname($fd) {}
+function posix_ttyname($fd): string|false {}
function posix_isatty($fd): bool {}
-/** @return string|false */
-function posix_getcwd() {}
+function posix_getcwd(): string|false {}
#ifdef HAVE_MKFIFO
function posix_mkfifo(string $pathname, int $mode): bool {}
function posix_access(string $file, int $mode = 0): bool {}
-/** @return array|false */
-function posix_getgrnam(string $name) {}
+function posix_getgrnam(string $name): array|false {}
-/** @return array|false */
-function posix_getgrgid(int $gid) {}
+function posix_getgrgid(int $gid): array|false {}
-/** @return array|false */
-function posix_getpwnam(string $username) {}
+function posix_getpwnam(string $username): array|false {}
-/** @return array|false */
-function posix_getpwuid(int $uid) {}
+function posix_getpwuid(int $uid): array|false {}
#ifdef HAVE_GETRLIMIT
-/** @return array|false */
-function posix_getrlimit() {}
+function posix_getrlimit(): array|false {}
#endif
#ifdef HAVE_SETRLIMIT
#endif
#if defined(HAVE_GETGROUPS)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getgroups, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgroups, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_GETLOGIN)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getlogin, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getlogin, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
ZEND_END_ARG_INFO()
#if defined(HAVE_GETPGID)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getpgid, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpgid, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pid, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_GETSID)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getsid, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getsid, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pid, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_uname, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_uname, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#define arginfo_posix_times arginfo_posix_uname
#if defined(HAVE_CTERMID)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_ctermid, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_ctermid, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_ttyname, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_ttyname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, fd)
ZEND_END_ARG_INFO()
ZEND_ARG_INFO(0, fd)
ZEND_END_ARG_INFO()
-#define arginfo_posix_getcwd arginfo_posix_uname
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getcwd, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
#if defined(HAVE_MKFIFO)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_mkfifo, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getgrnam, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgrnam, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getgrgid, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgrgid, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, gid, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getpwnam, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpwnam, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, username, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getpwuid, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpwuid, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, uid, IS_LONG, 0)
ZEND_END_ARG_INFO()
#if defined(HAVE_GETRLIMIT)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_posix_getrlimit, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getrlimit, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
<?php
-/** @return int|false */
-function pspell_new(string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, int $mode = 0) {}
+function pspell_new(string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, int $mode = 0): int|false {}
-/** @return int|false */
-function pspell_new_personal(string $personal, string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, $mode = 0) {}
+function pspell_new_personal(string $personal, string $language, string $spelling = UNKNOWN, string $jargon = UNKNOWN, string $encoding = UNKNOWN, $mode = 0): int|false {}
-/** @return int|false */
-function pspell_new_config(int $config) {}
+function pspell_new_config(int $config): int|false {}
function pspell_check(int $pspell, string $word): bool {}
-/** @return array|false */
-function pspell_suggest(int $pspell, string $word) {}
+function pspell_suggest(int $pspell, string $word): array|false {}
function pspell_store_replacement(int $pspell, string $misspell, string $correct): bool {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pspell_new, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, spelling, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, jargon, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new_personal, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pspell_new_personal, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, personal, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, spelling, IS_STRING, 0)
ZEND_ARG_INFO(0, mode)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new_config, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pspell_new_config, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, config, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_suggest, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pspell_suggest, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pspell, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
ZEND_END_ARG_INFO()
<?php
-/** @return string|false */
-function readline(?string $prompt = null) {}
+function readline(?string $prompt = null): string|false {}
/** @return mixed */
function readline_info(string $varname = UNKNOWN, string $newvalue = UNKNOWN) {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_readline, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readline, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, prompt, IS_STRING, 1)
ZEND_END_ARG_INFO()
<?php
-/** @return string|false */
-function session_name(string $name = UNKNOWN) {}
+function session_name(string $name = UNKNOWN): string|false {}
-/** @return string|false */
-function session_module_name(string $module = UNKNOWN) {}
+function session_module_name(string $module = UNKNOWN): string|false {}
-/** @return string|false */
-function session_save_path(string $path = UNKNOWN) {}
+function session_save_path(string $path = UNKNOWN): string|false {}
-/** @return string|false */
-function session_id(string $id = UNKNOWN) {}
+function session_id(string $id = UNKNOWN): string|false {}
-/** @return string|false */
-function session_create_id(string $prefix = "") {}
+function session_create_id(string $prefix = ""): string|false {}
function session_regenerate_id(bool $delete_old_session = false): bool {}
function session_decode(string $data): bool {}
-/** @return string|false */
-function session_encode() {}
+function session_encode(): string|false {}
function session_destroy(): bool {}
function session_unset(): bool {}
-/** @return int|false */
-function session_gc() {}
+function session_gc(): int|false {}
function session_get_cookie_params(): array {}
function session_set_save_handler($open, $close = null, $read = null, $write = null, $destroy = null, $gc = null, $create_sid = null, $validate_sid = null, $update_timestamp = null): bool {}
-/** @return string|false */
-function session_cache_limiter(string $cache_limiter = UNKNOWN) {}
+function session_cache_limiter(string $cache_limiter = UNKNOWN): string|false {}
-/** @return int|false */
-function session_cache_expire(?int $new_cache_expire = null) {}
+function session_cache_expire(?int $new_cache_expire = null): int|false {}
function session_set_cookie_params($lifetime_or_options, string $path = UNKNOWN, string $domain = "", ?bool $secure = null, ?bool $httponly = null): bool {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_name, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_module_name, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_module_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, module, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_save_path, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_save_path, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_id, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_id, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_create_id, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_create_id, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_encode, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_encode, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_destroy, 0, 0, _IS_BOOL, 0)
#define arginfo_session_unset arginfo_session_destroy
-#define arginfo_session_gc arginfo_session_encode
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_gc, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_get_cookie_params, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_INFO(0, update_timestamp)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_cache_limiter, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_cache_limiter, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, cache_limiter, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_session_cache_expire, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_cache_expire, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, new_cache_expire, IS_LONG, 1)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, session_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_SessionHandlerInterface_close arginfo_session_encode
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_close, 0, 0, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SessionHandlerInterface_read, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_class_SessionIdInterface_create_sid arginfo_session_encode
+#define arginfo_class_SessionIdInterface_create_sid arginfo_class_SessionHandlerInterface_close
#define arginfo_class_SessionUpdateTimestampHandlerInterface_validateId arginfo_class_SessionHandlerInterface_read
/** @return resource|false */
function shmop_open(int $key, string $flags, int $mode, int $size) {}
-/**
- * @param resource $shmid
- * @return string|false
- */
-function shmop_read($shmid, int $start, int $count) {}
+/** @param resource $shmid */
+function shmop_read($shmid, int $start, int $count): string|false {}
-/**
- * @param resource $shmid
- */
+/** @param resource $shmid */
function shmop_close($shmid): void {}
-/**
- * @param resource $shmid
- */
+/** @param resource $shmid */
function shmop_size($shmid): int {}
-/**
- * @param resource $shmid
- * @return int|false
- */
-function shmop_write($shmid, string $data, int $offset) {}
+/** @param resource $shmid */
+function shmop_write($shmid, string $data, int $offset): int|false {}
-/**
- * @param resource $shmid
- */
+/** @param resource $shmid */
function shmop_delete($shmid): bool {}
ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_read, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_shmop_read, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, shmid)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
ZEND_ARG_INFO(0, shmid)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_write, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_shmop_write, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, shmid)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
<?php
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmpget(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmpget(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmpgetnext(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmpgetnext(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmpwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmpwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmprealwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmprealwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmpwalkoid(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmpwalkoid(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/**
* @param array|string $object_id
* @param array|string $type
* @param array|string $value
- * @return array|bool
*/
-function snmpset(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+function snmpset(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
function snmp_get_quick_print(): bool {}
function snmp_set_oid_numeric_print(int $oid_format): bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp2_get(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp2_get(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp2_getnext(string $host, string $community, $object_id, int $timeout = UNKOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp2_getnext(string $host, string $community, $object_id, int $timeout = UNKOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp2_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp2_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp2_real_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp2_real_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/**
* @param array|string $object_id
* @param array|string $type
* @param array|string $value
- * @return array|bool
*/
-function snmp2_set(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+function snmp2_set(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKOWN) {}
+/** @param array|string $object_id */
+function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
-/**
- * @param array|string $object_id
- * @return array|bool
- */
-function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+/** @param array|string $object_id */
+function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/**
* @param array|string $object_id
* @param array|string $type
* @param array|string $value
- * @return array|bool
*/
-function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
function snmp_set_valueretrieval(int $method): bool {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_snmpget, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpget, 0, 3, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
ZEND_ARG_INFO(0, object_id)
#define arginfo_snmpwalkoid arginfo_snmpget
-ZEND_BEGIN_ARG_INFO_EX(arginfo_snmpset, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpset, 0, 5, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
ZEND_ARG_INFO(0, object_id)
#define arginfo_snmp2_set arginfo_snmpset
-ZEND_BEGIN_ARG_INFO_EX(arginfo_snmp3_get, 0, 0, 8)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_get, 0, 8, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
#define arginfo_snmp3_real_walk arginfo_snmp3_get
-ZEND_BEGIN_ARG_INFO_EX(arginfo_snmp3_set, 0, 0, 10)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_set, 0, 10, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
<?php
-/** @return int|false */
-function socket_select(?array &$read_fds, ?array &$write_fds, ?array &$except_fds, ?int $tv_sec, int $tv_usec = 0) {}
+function socket_select(?array &$read_fds, ?array &$write_fds, ?array &$except_fds, ?int $tv_sec, int $tv_usec = 0): int|false {}
/** @return resource|false */
function socket_create_listen(int $port, int $backlog = 128) {}
/**
* @param resource $socket
- *
* @return resource|false
*/
function socket_accept($socket) {}
/** @param resource $socket */
function socket_close($socket): void {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_write($socket, string $buf, int $length = 0) {}
+/** @param resource $socket */
+function socket_write($socket, string $buf, int $length = 0): int|false {}
-/**
- * @param resource $socket
- *
- * @return string|false
- */
-function socket_read($socket, int $length, int $type = PHP_BINARY_READ) {}
+/** @param resource $socket */
+function socket_read($socket, int $length, int $type = PHP_BINARY_READ): string|false {}
/** @param resource $socket */
function socket_getsockname($socket, &$addr, &$port = UNKNOWN): bool {}
/** @param resource $socket */
function socket_bind($socket, string $addr, int $port = 0): bool {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_recv($socket, &$buf, int $len, int $flags) {}
+/** @param resource $socket */
+function socket_recv($socket, &$buf, int $len, int $flags): int|false {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_send($socket, string $buf, int $len, int $flags) {}
+/** @param resource $socket */
+function socket_send($socket, string $buf, int $len, int $flags): int|false {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_recvfrom($socket, &$buf, int $len, int $flags, &$name, &$port = UNKNOWN) {}
+/** @param resource $socket */
+function socket_recvfrom($socket, &$buf, int $len, int $flags, &$name, &$port = UNKNOWN): int|false {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_sendto($socket, string $buf, int $len, int $flags, string $addr, int $port = 0) {}
+/** @param resource $socket */
+function socket_sendto($socket, string $buf, int $len, int $flags, string $addr, int $port = 0): int|false {}
-/**
- * @param resource $socket
- *
- * @return array|int|false
- */
-function socket_get_option($socket, int $level, int $optname) {}
+/** @param resource $socket */
+function socket_get_option($socket, int $level, int $optname): array|int|false {}
/** @param resource $socket */
function socket_set_option($socket, int $level, int $optname, $optval): bool {}
#ifdef HAVE_SOCKETPAIR
-/** @return bool|null */
-function socket_create_pair(int $domain, int $type, int $protocol, &$fd) {}
+function socket_create_pair(int $domain, int $type, int $protocol, &$fd): bool|null {}
#endif
#ifdef HAVE_SHUTDOWN
/**
* @param resource $stream
- *
* @return resource|false
*/
function socket_import_stream($stream) {}
/** @param resource $socket */
function socket_export_stream($socket) {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_sendmsg($socket, array $msghdr, int $flags = 0) {}
+/** @param resource $socket */
+function socket_sendmsg($socket, array $msghdr, int $flags = 0): int|false {}
-/**
- * @param resource $socket
- *
- * @return int|false
- */
-function socket_recvmsg($socket, array &$msghdr, int $flags = 0) {}
+/** @param resource $socket */
+function socket_recvmsg($socket, array &$msghdr, int $flags = 0): int|false {}
function socket_cmsg_space(int $level, int $type, int $n = 0): ?int {}
-/** @return array|false */
-function socket_addrinfo_lookup(string $host, string $service = UNKNOWN, array $hints = UNKNOWN) {}
+function socket_addrinfo_lookup(string $host, string $service = UNKNOWN, array $hints = UNKNOWN): array|false {}
/**
* @param resource $addr
- *
* @return resource|false
*/
function socket_addrinfo_connect($addr) {}
/**
* @param resource $addr
- *
* @return resource|false
*/
function socket_addrinfo_bind($addr) {}
function socket_addrinfo_explain($addr): array {}
#ifdef PHP_WIN32
-/**
- * @param resource $socket
- *
- * @return string|false
- */
-function socket_wsaprotocol_info_export($socket, int $target_pid) {}
+/** @param resource $socket */
+function socket_wsaprotocol_info_export($socket, int $target_pid): string|false {}
-/**
- * @return resource|false
- */
+/** @return resource|false */
function socket_wsaprotocol_info_import(string $info_id) {}
function socket_wsaprotocol_info_release(string $info_id): bool {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_select, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(1, read_fds, IS_ARRAY, 1)
ZEND_ARG_TYPE_INFO(1, write_fds, IS_ARRAY, 1)
ZEND_ARG_TYPE_INFO(1, except_fds, IS_ARRAY, 1)
ZEND_ARG_INFO(0, socket)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_write, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_write, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, buf, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_read, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_read, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
#define arginfo_socket_bind arginfo_socket_connect
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recv, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_recv, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_INFO(1, buf)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_send, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_send, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, buf, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recvfrom, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_recvfrom, 0, 5, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_INFO(1, buf)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_ARG_INFO(1, port)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_sendto, 0, 0, 5)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_sendto, 0, 5, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, buf, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, port, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_get_option, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_get_option, 0, 3, MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, level, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, optname, IS_LONG, 0)
ZEND_END_ARG_INFO()
#if defined(HAVE_SOCKETPAIR)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_create_pair, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_socket_create_pair, 0, 4, _IS_BOOL, 1)
ZEND_ARG_TYPE_INFO(0, domain, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, protocol, IS_LONG, 0)
#define arginfo_socket_export_stream arginfo_socket_accept
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_sendmsg, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_sendmsg, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, msghdr, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recvmsg, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_recvmsg, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(1, msghdr, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_addrinfo_lookup, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_addrinfo_lookup, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, service, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, hints, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
#if defined(PHP_WIN32)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_wsaprotocol_info_export, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_wsaprotocol_info_export, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, socket)
ZEND_ARG_TYPE_INFO(0, target_pid, IS_LONG, 0)
ZEND_END_ARG_INFO()
function sodium_crypto_aead_aes256gcm_is_available(): bool {}
#ifdef HAVE_AESGCM
-/** @return string|false */
-function sodium_crypto_aead_aes256gcm_decrypt(string $string, string $ad, string $nonce, string $key) {}
+function sodium_crypto_aead_aes256gcm_decrypt(string $string, string $ad, string $nonce, string $key): string|false {}
function sodium_crypto_aead_aes256gcm_encrypt(string $string, string $ad, string $nonce, string $key): string {}
function sodium_crypto_aead_aes256gcm_keygen(): string {}
#endif
-/** @return string|false */
-function sodium_crypto_aead_chacha20poly1305_decrypt(string $string, string $ad, string $nonce, string $key) {}
+function sodium_crypto_aead_chacha20poly1305_decrypt(string $string, string $ad, string $nonce, string $key): string|false {}
function sodium_crypto_aead_chacha20poly1305_encrypt(string $string, string $ad, string $nonce, string $key): string {}
function sodium_crypto_aead_chacha20poly1305_keygen(): string {}
-/** @return string|false */
-function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $string, string $ad, string $nonce, string $key) {}
+function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $string, string $ad, string $nonce, string $key): string|false {}
function sodium_crypto_aead_chacha20poly1305_ietf_encrypt(string $string, string $ad, string $nonce, string $key): string {}
function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}
#ifdef crypto_aead_xchacha20poly1305_IETF_NPUBBYTES
-/** @return string|false */
-function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $string, string $ad, string $nonce, string $key) {}
+function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $string, string $ad, string $nonce, string $key): string|false {}
function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {}
function sodium_crypto_box_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key): string {}
-/** @return string|false */
-function sodium_crypto_box_open(string $string, string $nonce, string $key) {}
+function sodium_crypto_box_open(string $string, string $nonce, string $key): string|false {}
function sodium_crypto_box_publickey(string $key): string {}
function sodium_crypto_box_seal(string $string, string $key): string {}
-/** @return string|false */
-function sodium_crypto_box_seal_open(string $string, string $key) {}
+function sodium_crypto_box_seal_open(string $string, string $key): string|false {}
function sodium_crypto_box_secretkey(string $key): string {}
function sodium_crypto_secretbox_keygen(): string {}
-/** @return string|false */
-function sodium_crypto_secretbox_open(string $string, string $nonce, string $key) {}
+function sodium_crypto_secretbox_open(string $string, string $nonce, string $key): string|false {}
#ifdef crypto_secretstream_xchacha20poly1305_ABYTES
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $string, string $key): string {}
-/** @return array|false */
-function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $c, string $ad = "") {}
+function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $c, string $ad = ""): array|false {}
function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void {}
#endif
function sodium_crypto_sign_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key): string {}
-/** @return string|false */
-function sodium_crypto_sign_open(string $string, string $keypair) {}
+function sodium_crypto_sign_open(string $string, string $keypair): string|false {}
function sodium_crypto_sign_publickey(string $key): string {}
ZEND_END_ARG_INFO()
#if defined(HAVE_AESGCM)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_decrypt, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_aead_aes256gcm_decrypt, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, ad, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_aead_chacha20poly1305_decrypt, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_aead_chacha20poly1305_decrypt, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, ad, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
#define arginfo_sodium_crypto_aead_chacha20poly1305_ietf_keygen arginfo_sodium_crypto_aead_chacha20poly1305_keygen
#if defined(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_aead_xchacha20poly1305_ietf_decrypt, 0, 0, 4)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_aead_xchacha20poly1305_ietf_decrypt, 0, 4, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, ad, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_box_open, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_box_open, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, nonce, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
#define arginfo_sodium_crypto_box_seal arginfo_sodium_crypto_auth
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_box_seal_open, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_box_seal_open, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_secretstream_xchacha20poly1305_pull, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_secretstream_xchacha20poly1305_pull, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(1, state, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, c, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, ad, IS_STRING, 0)
#define arginfo_sodium_crypto_sign_keypair_from_secretkey_and_publickey arginfo_sodium_crypto_box_keypair_from_secretkey_and_publickey
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sodium_crypto_sign_open, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sodium_crypto_sign_open, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, keypair, IS_STRING, 0)
ZEND_END_ARG_INFO()
*/
function current($arg) {}
-/**
- * @param array|object $arg
- * @return int|string|null
- */
-function key($arg) {}
+/** @param array|object $arg */
+function key($arg): int|string|null {}
/** @return mixed */
function min($arg, ...$args) {}
function in_array($needle, array $haystack, bool $strict = false): bool {}
-/** @return int|string|false */
-function array_search($needle, array $haystack, bool $strict = false) {}
+function array_search($needle, array $haystack, bool $strict = false): int|string|false {}
/** @prefer-ref $arg */
function extract(array &$arg, int $extract_type = EXTR_OVERWRITE, string $prefix = ""): int {}
function array_keys(array $arg, $search_value = UNKNOWN, bool $strict = false): array {}
-/** @return int|string|null */
-function array_key_first(array $arg) {}
+function array_key_first(array $arg): int|string|null {}
-/** @return int|string|null */
-function array_key_last(array $arg) {}
+function array_key_last(array $arg): int|string|null {}
function array_values(array $arg): array {}
*/
function array_multisort(&$arr1, $sort_order = SORT_ASC, $sort_flags = SORT_REGULAR, &...$arr2): bool {}
-/** @return int|string|array */
-function array_rand(array $arg, int $num_req = 1) {}
+function array_rand(array $arg, int $num_req = 1): int|string|array {}
-/** @return int|float */
-function array_sum(array $arg) {}
+function array_sum(array $arg): int|float {}
-/** @return int|float */
-function array_product(array $arg) {}
+function array_product(array $arg): int|float {}
function array_reduce(array $arg, callable $callback, $initial = null) {}
function base64_encode(string $str): string {}
-/** @return string|false */
-function base64_decode(string $str, bool $strict = false) {}
+function base64_decode(string $str, bool $strict = false): string|false {}
/* basic_functions.c */
/** @return mixed */
function constant(string $name) {}
-/** @return int|false */
-function ip2long(string $ip_address) {}
+function ip2long(string $ip_address): int|false {}
-/** @return string|false */
-function long2ip(int $proper_address) {}
+function long2ip(int $proper_address): string|false {}
-/** @return string|array|false */
-function getenv(string $variable = UNKNOWN, bool $local_only = false) {}
+function getenv(string $variable = UNKNOWN, bool $local_only = false): string|array|false {}
#ifdef HAVE_PUTENV
function putenv(string $setting): bool {}
#endif
-/** @return array|false */
-function getopt(string $options, array $longopts = [], &$optind = null) {}
+function getopt(string $options, array $longopts = [], &$optind = null): array|false {}
function flush(): void {}
function usleep(int $microseconds): void {}
#if HAVE_NANOSLEEP
-/** @return array|bool */
-function nanosleep(int $seconds, int $nanoseconds) {}
+function nanosleep(int $seconds, int $nanoseconds): array|bool {}
function time_sleep_until(float $timestamp): bool {}
#endif
function get_current_user(): string {}
-/** @return string|array|false */
-function get_cfg_var(string $option_name) {}
+function get_cfg_var(string $option_name): string|array|false {}
function get_magic_quotes_runtime(): bool {}
/**
* @param callable $function
* @param mixed ...$args
- * @return false|null
*/
-function register_shutdown_function($function, ...$args) {}
+function register_shutdown_function($function, ...$args): ?bool {}
-/** @return string|bool|null */
-function highlight_file(string $filename, bool $return = false) {}
+function highlight_file(string $filename, bool $return = false): string|bool|null {}
function php_strip_whitespace(string $filename): string {}
-/** @return string|bool|null */
-function highlight_string(string $string, bool $return = false) {}
+function highlight_string(string $string, bool $return = false): string|bool|null {}
-/** @return string|false */
-function ini_get(string $varname) {}
+function ini_get(string $varname): string|false {}
-/** @return array|false */
-function ini_get_all(?string $extension = null, bool $details = true) {}
+function ini_get_all(?string $extension = null, bool $details = true): array|false {}
-/** @return string|false */
-function ini_set(string $varname, string $value) {}
+function ini_set(string $varname, string $value): string|false {}
function ini_restore(string $varname): void {}
-/** @return string|false */
-function set_include_path(string $include_path) {}
+function set_include_path(string $include_path): string|false {}
-/** @return string|false */
-function get_include_path() {}
+function get_include_path(): string|false {}
function restore_include_path(): void {}
-/**
- * @param mixed $var
- * @return string|bool
- */
-function print_r($var, bool $return = false) {}
+/** @param mixed $var */
+function print_r($var, bool $return = false): string|bool {}
function connection_aborted(): int {}
function ignore_user_abort(bool $value = UNKNOWN): int {}
#if HAVE_GETSERVBYNAME
-/** @return int|false */
-function getservbyname(string $service, string $protocol) {}
+function getservbyname(string $service, string $protocol): int|false {}
#endif
#if HAVE_GETSERVBYPORT
-/** @return string|false */
-function getservbyport(int $port, string $protocol) {}
+function getservbyport(int $port, string $protocol): string|false {}
#endif
#if HAVE_GETPROTOBYNAME
-/** @return int|false */
-function getprotobyname(string $name) {}
+function getprotobyname(string $name): int|false {}
#endif
#if HAVE_GETPROTOBYNUMBER
-/** @return string|false */
-function getprotobynumber(int $protocol) {}
+function getprotobynumber(int $protocol): string|false {}
#endif
/** @param mixed $args */
function move_uploaded_file(string $path, string $new_path): bool {}
-/** @return array|false */
-function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL) {}
+function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
-/** @return array|false */
-function parse_ini_string(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL) {}
+function parse_ini_string(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
#if ZEND_DEBUG
function config_get_hash(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array {}
#endif
#ifdef HAVE_GETLOADAVG
-/** @return array|false */
-function sys_getloadavg() {}
+function sys_getloadavg(): array|false {}
#endif
/* browscap.c */
-/** @return object|array|false */
-function get_browser(?string $browser_name = null, bool $return_array = false) {}
+function get_browser(?string $browser_name = null, bool $return_array = false): object|array|false {}
/* crc32.c */
/* datetime.c */
#if HAVE_STRPTIME
-/** @return array|false */
-function strptime(string $timestamp, string $format) {}
+function strptime(string $timestamp, string $format): array|false {}
#endif
/* dns.c */
#ifdef HAVE_GETHOSTNAME
-/** @return string|false */
-function gethostname() {}
+function gethostname(): string|false {}
#endif
-/** @return string|false */
-function gethostbyaddr(string $ip_address) {}
+function gethostbyaddr(string $ip_address): string|false {}
function gethostbyname(string $hostname): string {}
-/** @return array|false */
-function gethostbynamel(string $hostname) {}
+function gethostbynamel(string $hostname): array|false {}
#if defined(PHP_WIN32) || HAVE_DNS_SEARCH_FUNC
function dns_check_record(string $hostname, string $type = "MX"): bool {}
-/** @return array|false */
-function dns_get_record(string $hostname, int $type = DNS_ANY, &$authns = null, &$addtl = null, bool $raw = false) {}
+function dns_get_record(string $hostname, int $type = DNS_ANY, &$authns = null, &$addtl = null, bool $raw = false): array|false {}
function dns_get_mx(string $hostname, &$mxhosts, &$weight = null): bool {}
#endif
/* net.c */
-/** @return array|false */
-function net_get_interfaces() {}
+function net_get_interfaces(): array|false {}
/* ftok.c */
/* hrtime.c */
-/** @return array|int|float|false */
-function hrtime(bool $get_as_number = false) {}
+function hrtime(bool $get_as_number = false): array|int|float|false {}
/* lcg.c */
function md5(string $str, bool $raw_output = false): string {}
-/** @return string|false */
-function md5_file(string $filename, bool $raw_output = false) {}
+function md5_file(string $filename, bool $raw_output = false): string|false {}
/* pageinfo.c */
-/** @return int|false */
-function getmyuid() {}
+function getmyuid(): int|false {}
-/** @return int|false */
-function getmygid() {}
+function getmygid(): int|false {}
-/** @return int|false */
-function getmypid() {}
+function getmypid(): int|false {}
-/** @return int|false */
-function getmyinode() {}
+function getmyinode(): int|false {}
function getlastmod(): int {}
function sha1(string $str, bool $raw_output = false): string {}
-/** @return string|false */
-function sha1_file(string $filename, bool $raw_output = false) {}
+function sha1_file(string $filename, bool $raw_output = false): string|false {}
/* syslog.c */
#ifdef HAVE_SYSLOG_H
-function openlog (string $ident, int $option, int $facility): bool {}
+function openlog(string $ident, int $option, int $facility): bool {}
-function closelog (): bool {}
+function closelog(): bool {}
-function syslog (int $priority, string $message): bool {}
+function syslog(int $priority, string $message): bool {}
#endif
#ifdef HAVE_INET_NTOP
-/** @return string|false */
-function inet_ntop (string $in_addr) {}
+function inet_ntop(string $in_addr): string|false {}
#endif
#ifdef HAVE_INET_PTON
-/** @return string|false */
-function inet_pton (string $ip_address) {}
+function inet_pton(string $ip_address): string|false {}
#endif
/* metaphone.c */
-/** @return string|false */
-function metaphone(string $text, int $phones = 0) {}
+function metaphone(string $text, int $phones = 0): string|false {}
/* {{{ head.c */
function header(string $string, bool $replace = true, int $http_response_code = 0): void { }
/** @param int|array $expires_or_options */
function setrawcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
-
/** @param int|array $expires_or_options */
function setcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
-/** @return int|bool */
-function http_response_code(int $response_code = 0) {}
+function http_response_code(int $response_code = 0): int|bool {}
function headers_sent(&$file = null, &$line = null): bool {}
function htmlspecialchars(string $string, int $quote_style = ENT_COMPAT, ?string $encoding = null, bool $double_encode = true): string {}
-/** @return string|false */
-function htmlspecialchars_decode(string $string, int $quote_style = ENT_COMPAT) {}
+function htmlspecialchars_decode(string $string, int $quote_style = ENT_COMPAT): string|false {}
-/** @return string|false */
-function html_entity_decode(string $string, int $quote_style = ENT_COMPAT, string $encoding = UNKNOWN) {}
+function html_entity_decode(string $string, int $quote_style = ENT_COMPAT, string $encoding = UNKNOWN): string|false {}
function htmlentities(string $string, int $quote_style = ENT_COMPAT, ?string $encoding = null, bool $double_encode = true): string {}
/** @param mixed $assertion */
function assert($assertion, $description = null): bool {}
-/** @return int|string|bool|null */
-function assert_options(int $what, $value = UNKNOWN) {}
+function assert_options(int $what, $value = UNKNOWN): array|int|string|bool|null {}
/* string.c */
function bin2hex(string $data): string {}
-/** @return string|false */
-function hex2bin(string $data) {}
+function hex2bin(string $data): string|false {}
-/** @return int|false */
-function strspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN) {}
+function strspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN): int|false {}
-/** @return int|false */
-function strcspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN) {}
+function strcspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN): int|false {}
#if HAVE_NL_LANGINFO
-/** @return string|false */
-function nl_langinfo(int $item) {}
+function nl_langinfo(int $item): string|false {}
#endif
function strcoll(string $str1, string $str2): int {}
/**
* @param string $str Optional - defaults to previous string
* @param string $token
- * @return string|false
*/
-function strtok(string $str, string $token = UNKNOWN) {}
+function strtok(string $str, string $token = UNKNOWN): string|false {}
function strtoupper(string $str): string {}
function dirname(string $path, int $levels = 1): string {}
-/** @return array|string */
-function pathinfo(string $path, int $options = UNKNOWN) {}
+function pathinfo(string $path, int $options = UNKNOWN): array|string {}
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
function chunk_split(string $str, int $chunklen = 76, string $ending = "\r\n"): string {}
-/** @return string|false */
-function substr(string $str, int $start, ?int $length = null) {}
+function substr(string $str, int $start, ?int $length = null): string|false {}
/**
* @param mixed $str
* @param mixed $replace
* @param mixed $start
* @param mixed $length
- * @return string|array|false
*/
-function substr_replace($str, $replace, $start, $length = UNKNOWN) {}
+function substr_replace($str, $replace, $start, $length = UNKNOWN): string|array|false {}
function quotemeta(string $str): string {}
* @param string|array $replace
* @param string|array $subject
* @param int $replace_count
- * @return string|array
*/
-function str_replace($search, $replace, $subject, &$replace_count = UNKNOWN) {}
+function str_replace($search, $replace, $subject, &$replace_count = UNKNOWN): string|array {}
/**
* @param string|array $search
* @param string|array $replace
* @param string|array $subject
* @param int $replace_count
- * @return string|array
*/
-function str_ireplace($search, $replace, $subject, &$replace_count = UNKNOWN) {}
+function str_ireplace($search, $replace, $subject, &$replace_count = UNKNOWN): string|array {}
function hebrev(string $str, int $max_chars_per_line = 0): string {}
/**
* @param string|array $locales
- * @return string|false
*/
-function setlocale(int $category, $locales, ...$rest) {}
+function setlocale(int $category, $locales, ...$rest): string|false {}
/** @param array $result */
function parse_str(string $encoded_string, &$result): void {}
function str_repeat(string $input, int $mult): string {}
-/** @return array|string */
-function count_chars(string $input, int $mode = 0) {}
+function count_chars(string $input, int $mode = 0): array|string {}
function strnatcmp(string $s1, string $s2): int {}
function strnatcasecmp(string $s1, string $s2): int {}
-/** @return int|false */
-function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null) {}
+function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int|false {}
function str_pad(string $input, int $pad_length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT): string {}
-/** @return array|int|null */
-function sscanf(string $str, string $format, &...$vars) {}
+function sscanf(string $str, string $format, &...$vars): array|int|null {}
function str_rot13(string $str): string {}
function str_shuffle(string $str): string {}
-/** @return array|int */
-function str_word_count(string $str, int $format = 0, string $charlist = UNKNOWN) {}
+function str_word_count(string $str, int $format = 0, string $charlist = UNKNOWN): array|int {}
#ifdef HAVE_STRFMON
-/** @return string|false */
-function money_format(string $format, float $value) {}
+function money_format(string $format, float $value): string|false {}
#endif
function str_split(string $str, int $split_length = 1): array {}
-/** @return string|false */
-function strpbrk(string $haystack, string $char_list) {}
+function strpbrk(string $haystack, string $char_list): string|false {}
-/** @return int|false */
-function substr_compare(string $main_str, string $str, int $offset, ?int $length = null, bool $case_insensitivity = false) {}
+function substr_compare(string $main_str, string $str, int $offset, ?int $length = null, bool $case_insensitivity = false): int|false {}
function utf8_encode(string $data): string {}
function chroot(string $directory): bool {}
#endif
-/** @return string|false */
-function getcwd() {}
+function getcwd(): string|false {}
/** @param resource $dir_handle */
function rewinddir($dir_handle = UNKNOWN): void {}
-/** @return string|false */
-function readdir($dir_handle = UNKNOWN) {}
+function readdir($dir_handle = UNKNOWN): string|false {}
-/**
- * @param resource $context
- * @return array|false
- */
-function scandir(string $directory, int $sorting_order = 0, $context = UNKNOWN) {}
+/** @param resource $context */
+function scandir(string $directory, int $sorting_order = 0, $context = UNKNOWN): array|false {}
#ifdef HAVE_GLOB
-/** @return array|false */
-function glob(string $pattern, int $flags = 0) {}
+function glob(string $pattern, int $flags = 0): array|false {}
#endif
/* filestat.c */
-/** @return int|false */
-function fileatime(string $filename) {}
+function fileatime(string $filename): int|false {}
-/** @return int|false */
-function filectime(string $filename) {}
+function filectime(string $filename): int|false {}
-/** @return int|false */
-function filegroup(string $filename) {}
+function filegroup(string $filename): int|false {}
-/** @return int|false */
-function fileinode(string $filename) {}
+function fileinode(string $filename): int|false {}
-/** @return int|false */
-function filemtime(string $filename) {}
+function filemtime(string $filename): int|false {}
-/** @return int|false */
-function fileowner(string $filename) {}
+function fileowner(string $filename): int|false {}
-/** @return int|false */
-function fileperms(string $filename) {}
+function fileperms(string $filename): int|false {}
-/** @return int|false */
-function filesize(string $filename) {}
+function filesize(string $filename): int|false {}
-/** @return string|false */
-function filetype(string $filename) {}
+function filetype(string $filename): string|false {}
function file_exists(string $filename): bool {}
function is_link(string $filename): bool {}
-/** @return array|false */
-function stat(string $filename) {}
+function stat(string $filename): array|false {}
-/** @return array|false */
-function lstat(string $filename) {}
+function lstat(string $filename): array|false {}
function chown(string $filename, $user): bool {}
function clearstatcache(bool $clear_realpath_cache = false, string $filename = ""): void {}
-/** @return float|false */
-function disk_total_space(string $directory) {}
+function disk_total_space(string $directory): float|false {}
-/** @return float|false */
-function disk_free_space(string $directory) {}
+function disk_free_space(string $directory): float|false {}
-/** @return float|false */
-function diskfreespace(string $directory) {}
+function diskfreespace(string $directory): float|false {}
function realpath_cache_get(): array {}
function phpinfo(int $what = INFO_ALL): bool {}
-/** @return string|false */
-function phpversion(string $extension = UNKNOWN) {}
+function phpversion(string $extension = UNKNOWN): string|false {}
function phpcredits(int $flag = CREDITS_ALL): bool {}
-/** @return string|false */
-function php_sapi_name() {}
+function php_sapi_name(): string|false {}
function php_uname(string $mode = "a"): string {}
-/** @return string|false */
-function php_ini_scanned_files() {}
+function php_ini_scanned_files(): string|false {}
-/** @return string|false */
-function php_ini_loaded_file() {}
+function php_ini_loaded_file(): string|false {}
/* iptc.c */
-/** @return string|bool */
-function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0) {}
+function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0): string|bool {}
-/** @return array|false */
-function iptcparse(string $iptcblock) {}
+function iptcparse(string $iptcblock): array|false {}
/* levenshtein.c */
/* link.c */
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
-/** @return string|false */
-function readlink(string $path) {}
+function readlink(string $path): string|false {}
-/** @return int|false */
-function linkinfo(string $path) {}
+function linkinfo(string $path): int|false {}
function symlink(string $target, string $link): bool {}
/* math.c */
-/**
- * @param int|float $number
- * @return int|float
- */
-function abs($number) {}
+/** @param int|float $number */
+function abs($number): int|float {}
function ceil(float $number): float {}
function exp(float $number): float {}
-/** @return float|false */
-function log(float $number, float $base = M_E) {}
+function log(float $number, float $base = M_E): float|false {}
function log10(float $number): float {}
function rad2deg(float $number): float {}
-/** @return int|float */
-function bindec(string $binary_string) {}
+function bindec(string $binary_string): int|float {}
-/** @return int|float */
-function hexdec(string $hex_string) {}
+function hexdec(string $hex_string): int|float {}
-/** @return int|float */
-function octdec(string $octal_string) {}
+function octdec(string $octal_string): int|float {}
function decbin($number): string {}
/* microtime.c */
#ifdef HAVE_GETTIMEOFDAY
-/** @return string|float */
-function microtime(bool $get_as_float = false) {}
+function microtime(bool $get_as_float = false): string|float {}
-/** @return array|float */
-function gettimeofday(bool $return_float = false) {}
+function gettimeofday(bool $return_float = false): array|float {}
#endif
#ifdef HAVE_GETRUSAGE
-/** @return array|false */
-function getrusage(int $who = 0) {}
+function getrusage(int $who = 0): array|false {}
#endif
/* pack.c */
-/** @return string|false */
-function pack(string $format, ...$args) {}
+function pack(string $format, ...$args): string|false {}
-/** @return array|false */
-function unpack(string $format, string $data, int $offset = 0) {}
+function unpack(string $format, string $data, int $offset = 0): array|false {}
/* password.c */
function password_get_info(string $hash): ?array {}
-/** @return string|false */
-function password_hash(string $password, $algo, array $options = []) {}
+function password_hash(string $password, $algo, array $options = []): string|false|null {}
function password_needs_rehash(string $hash, $algo, array $options = []): bool {}
ZEND_ARG_INFO(0, arg)
ZEND_END_ARG_INFO()
-#define arginfo_key arginfo_current
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_key, 0, 1, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL)
+ ZEND_ARG_INFO(0, arg)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_min, 0, 0, 1)
ZEND_ARG_INFO(0, arg)
ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_array_search, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_array_search, 0, 2, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, needle)
ZEND_ARG_TYPE_INFO(0, haystack, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_array_key_first, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_array_key_first, 0, 1, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, arg, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_VARIADIC_INFO(ZEND_SEND_PREFER_REF, arr2)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_array_rand, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_array_rand, 0, 1, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_ARRAY)
ZEND_ARG_TYPE_INFO(0, arg, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, num_req, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_array_sum arginfo_array_key_first
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_array_sum, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE)
+ ZEND_ARG_TYPE_INFO(0, arg, IS_ARRAY, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_array_product arginfo_array_key_first
+#define arginfo_array_product arginfo_array_sum
ZEND_BEGIN_ARG_INFO_EX(arginfo_array_reduce, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, arg, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_base64_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_base64_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ip2long, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ip2long, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, ip_address, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_long2ip, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_long2ip, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, proper_address, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getenv, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getenv, 0, 0, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, variable, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, local_only, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getopt, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getopt, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, options, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, longopts, IS_ARRAY, 0)
ZEND_ARG_INFO(1, optind)
ZEND_END_ARG_INFO()
#if HAVE_NANOSLEEP
-ZEND_BEGIN_ARG_INFO_EX(arginfo_nanosleep, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_nanosleep, 0, 2, MAY_BE_ARRAY|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, nanoseconds, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_current_user, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_cfg_var, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_cfg_var, 0, 1, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, option_name, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_forward_static_call_array arginfo_call_user_func_array
-ZEND_BEGIN_ARG_INFO_EX(arginfo_register_shutdown_function, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_register_shutdown_function, 0, 1, _IS_BOOL, 1)
ZEND_ARG_INFO(0, function)
ZEND_ARG_VARIADIC_INFO(0, args)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_highlight_file, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_highlight_file, 0, 1, MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, return, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_highlight_string, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_highlight_string, 0, 1, MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, return, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ini_get, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_get, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, varname, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ini_get_all, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_get_all, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, details, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ini_set, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_set, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, varname, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, varname, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_set_include_path, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_set_include_path, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, include_path, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_include_path, 0, 0, 0)
-ZEND_END_ARG_INFO()
+#define arginfo_get_include_path arginfo_ob_get_flush
#define arginfo_restore_include_path arginfo_flush
-ZEND_BEGIN_ARG_INFO_EX(arginfo_print_r, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_print_r, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_INFO(0, var)
ZEND_ARG_TYPE_INFO(0, return, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if HAVE_GETSERVBYNAME
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getservbyname, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getservbyname, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, service, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, protocol, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if HAVE_GETSERVBYPORT
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getservbyport, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getservbyport, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, port, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, protocol, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if HAVE_GETPROTOBYNAME
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getprotobyname, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getprotobyname, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if HAVE_GETPROTOBYNUMBER
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getprotobynumber, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getprotobynumber, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, protocol, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
ZEND_ARG_TYPE_INFO(0, new_path, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_parse_ini_file, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_parse_ini_file, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, process_sections, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, scanner_mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_parse_ini_string, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_parse_ini_string, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, ini_string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, process_sections, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, scanner_mode, IS_LONG, 0)
#endif
#if defined(HAVE_GETLOADAVG)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sys_getloadavg, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sys_getloadavg, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_get_browser, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_browser, 0, 0, MAY_BE_OBJECT|MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, browser_name, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, return_array, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if HAVE_STRPTIME
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strptime, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strptime, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, timestamp, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_GETHOSTNAME)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gethostname, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gethostname, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
#endif
-#define arginfo_gethostbyaddr arginfo_ip2long
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gethostbyaddr, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, ip_address, IS_STRING, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gethostbyname, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gethostbynamel, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gethostbynamel, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(PHP_WIN32) || HAVE_DNS_SEARCH_FUNC
-ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_record, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dns_get_record, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
ZEND_ARG_INFO(1, authns)
ZEND_END_ARG_INFO()
#endif
-#define arginfo_net_get_interfaces arginfo_get_include_path
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_net_get_interfaces, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
+ZEND_END_ARG_INFO()
#if HAVE_FTOK
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftok, 0, 2, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hrtime, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hrtime, 0, 0, MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, get_as_number, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_md5_file, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_md5_file, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-#define arginfo_getmyuid arginfo_get_include_path
+#define arginfo_getmyuid arginfo_ob_get_length
-#define arginfo_getmygid arginfo_get_include_path
+#define arginfo_getmygid arginfo_ob_get_length
-#define arginfo_getmypid arginfo_get_include_path
+#define arginfo_getmypid arginfo_ob_get_length
-#define arginfo_getmyinode arginfo_get_include_path
+#define arginfo_getmyinode arginfo_ob_get_length
#define arginfo_getlastmod arginfo_ob_get_level
#endif
#if defined(HAVE_INET_NTOP)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_inet_ntop, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_inet_ntop, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, in_addr, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_INET_PTON)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_inet_pton, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_inet_pton, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, ip_address, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_metaphone, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_metaphone, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, phones, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_setcookie arginfo_setrawcookie
-ZEND_BEGIN_ARG_INFO_EX(arginfo_http_response_code, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_http_response_code, 0, 0, MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, response_code, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, double_encode, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_htmlspecialchars_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_htmlspecialchars_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, quote_style, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_html_entity_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_html_entity_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, quote_style, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_ARG_INFO(0, description)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_assert_options, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_assert_options, 0, 1, MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, what, IS_LONG, 0)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hex2bin, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hex2bin, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strspn, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strspn, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mask, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
#define arginfo_strcspn arginfo_strspn
#if HAVE_NL_LANGINFO
-ZEND_BEGIN_ARG_INFO_EX(arginfo_nl_langinfo, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_nl_langinfo, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, item, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
ZEND_ARG_INFO(0, pieces)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strtok, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtok, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, token, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pathinfo, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pathinfo, 0, 1, MAY_BE_ARRAY|MAY_BE_STRING)
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, ending, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_substr, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_substr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 1)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_substr_replace, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_substr_replace, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, str)
ZEND_ARG_INFO(0, replace)
ZEND_ARG_INFO(0, start)
#define arginfo_stripslashes arginfo_base64_encode
-ZEND_BEGIN_ARG_INFO_EX(arginfo_str_replace, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_str_replace, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY)
ZEND_ARG_INFO(0, search)
ZEND_ARG_INFO(0, replace)
ZEND_ARG_INFO(0, subject)
ZEND_ARG_INFO(0, allowable_tags)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_setlocale, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_setlocale, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, category, IS_LONG, 0)
ZEND_ARG_INFO(0, locales)
ZEND_ARG_VARIADIC_INFO(0, rest)
ZEND_ARG_TYPE_INFO(0, mult, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_count_chars, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_count_chars, 0, 1, MAY_BE_ARRAY|MAY_BE_STRING)
ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_strnatcasecmp arginfo_strnatcmp
-ZEND_BEGIN_ARG_INFO_EX(arginfo_substr_count, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_substr_count, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, pad_type, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_sscanf, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_sscanf, 0, 2, MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_ARG_VARIADIC_INFO(1, vars)
#define arginfo_str_shuffle arginfo_base64_encode
-ZEND_BEGIN_ARG_INFO_EX(arginfo_str_word_count, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_str_word_count, 0, 1, MAY_BE_ARRAY|MAY_BE_LONG)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, format, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, charlist, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if defined(HAVE_STRFMON)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_money_format, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_money_format, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, value, IS_DOUBLE, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, split_length, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_strpbrk, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strpbrk, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, char_list, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_substr_compare, 0, 0, 3)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_substr_compare, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, main_str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
-#define arginfo_getcwd arginfo_get_include_path
+#define arginfo_getcwd arginfo_ob_get_flush
#define arginfo_rewinddir arginfo_closedir
-#define arginfo_readdir arginfo_class_Directory_close
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readdir, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, dir_handle)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_scandir, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_scandir, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, sorting_order, IS_LONG, 0)
ZEND_ARG_INFO(0, context)
ZEND_END_ARG_INFO()
#if defined(HAVE_GLOB)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_glob, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_glob, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_fileatime, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_fileatime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_filesize arginfo_fileatime
-#define arginfo_filetype arginfo_fileatime
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_filetype, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
+ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_file_exists, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
#define arginfo_is_link arginfo_file_exists
-#define arginfo_stat arginfo_fileatime
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_stat, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
+ZEND_END_ARG_INFO()
-#define arginfo_lstat arginfo_fileatime
+#define arginfo_lstat arginfo_stat
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_chown, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_disk_total_space, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_disk_total_space, 0, 1, MAY_BE_DOUBLE|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, what, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_phpversion, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phpversion, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, flag, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_php_sapi_name arginfo_get_include_path
+#define arginfo_php_sapi_name arginfo_ob_get_flush
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_php_uname, 0, 0, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#define arginfo_php_ini_scanned_files arginfo_get_include_path
+#define arginfo_php_ini_scanned_files arginfo_ob_get_flush
-#define arginfo_php_ini_loaded_file arginfo_get_include_path
+#define arginfo_php_ini_loaded_file arginfo_ob_get_flush
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iptcembed, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iptcembed, 0, 2, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, iptcdata, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, jpeg_file_name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, spool, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_iptcparse, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iptcparse, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, iptcblock, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_readlink, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readlink, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
-#define arginfo_linkinfo arginfo_readlink
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_linkinfo, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
+ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
ZEND_ARG_TYPE_INFO(0, additional_parameters, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_abs, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_abs, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE)
ZEND_ARG_INFO(0, number)
ZEND_END_ARG_INFO()
#define arginfo_exp arginfo_ceil
-ZEND_BEGIN_ARG_INFO_EX(arginfo_log, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_log, 0, 1, MAY_BE_DOUBLE|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, number, IS_DOUBLE, 0)
ZEND_ARG_TYPE_INFO(0, base, IS_DOUBLE, 0)
ZEND_END_ARG_INFO()
#define arginfo_rad2deg arginfo_ceil
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bindec, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bindec, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE)
ZEND_ARG_TYPE_INFO(0, binary_string, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_hexdec, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_hexdec, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE)
ZEND_ARG_TYPE_INFO(0, hex_string, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_octdec, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_octdec, 0, 1, MAY_BE_LONG|MAY_BE_DOUBLE)
ZEND_ARG_TYPE_INFO(0, octal_string, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_END_ARG_INFO()
#if defined(HAVE_GETTIMEOFDAY)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_microtime, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_microtime, 0, 0, MAY_BE_STRING|MAY_BE_DOUBLE)
ZEND_ARG_TYPE_INFO(0, get_as_float, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_GETTIMEOFDAY)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gettimeofday, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gettimeofday, 0, 0, MAY_BE_ARRAY|MAY_BE_DOUBLE)
ZEND_ARG_TYPE_INFO(0, return_float, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_GETRUSAGE)
-ZEND_BEGIN_ARG_INFO_EX(arginfo_getrusage, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getrusage, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, who, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pack, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pack, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_ARG_VARIADIC_INFO(0, args)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_unpack, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_unpack, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_password_hash, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_password_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_ARG_INFO(0, algo)
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)
*/
function msg_remove_queue($queue): bool {}
-/**
- * @param resource $queue
- * @return array|false
- */
-function msg_stat_queue($queue) {}
+/** @param resource $queue */
+function msg_stat_queue($queue): array|false {}
/**
* @param resource $queue
ZEND_ARG_INFO(0, queue)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_stat_queue, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_msg_stat_queue, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, queue)
ZEND_END_ARG_INFO()
*/
function tidy_parse_string(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN) {}
-/** @return string|false */
-function tidy_get_error_buffer(tidy $object) {}
+function tidy_get_error_buffer(tidy $object): string|false {}
function tidy_get_output(tidy $object): string {}
function tidy_clean_repair(tidy $object): bool {}
-/**
- * @param array|string $config_options
- * @return string|false
- */
-function tidy_repair_string(string $data, $config_file = UNKNOWN, string $encoding = UNKNOWN) {}
+/** @param array|string $config_options */
+function tidy_repair_string(string $data, $config_file = UNKNOWN, string $encoding = UNKNOWN): string|false {}
-/**
- * @param array|string $config_options
- * @return string|false
- */
-function tidy_repair_file(string $filename, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+/** @param array|string $config_options */
+function tidy_repair_file(string $filename, $config_file = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): string|false {}
function tidy_diagnose(tidy $object): bool {}
function tidy_get_release(): string {}
#if HAVE_TIDYOPTGETDOC
-/** @return string|false */
-function tidy_get_opt_doc(tidy $object, string $optname) {}
+function tidy_get_opt_doc(tidy $object, string $optname): string|false {}
#endif
function tidy_get_config(tidy $object): array {}
function tidy_config_count(tidy $object): int {}
-/** @return string|int|bool */
-function tidy_getopt(tidy $object, string $option) {}
+function tidy_getopt(tidy $object, string $option): string|int|bool {}
function tidy_get_root(tidy $object): ?tidyNode {}
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_error_buffer, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_get_error_buffer, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, object, tidy, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_OBJ_INFO(0, object, tidy, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_repair_string, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_string, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_INFO(0, config_file)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_repair_file, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_file, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_INFO(0, config_file)
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
ZEND_END_ARG_INFO()
#if HAVE_TIDYOPTGETDOC
-ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_opt_doc, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_get_opt_doc, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO(0, object, tidy, 0)
ZEND_ARG_TYPE_INFO(0, optname, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_tidy_config_count arginfo_tidy_get_status
-ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_getopt, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_getopt, 0, 2, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_BOOL)
ZEND_ARG_OBJ_INFO(0, object, tidy, 0)
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
ZEND_END_ARG_INFO()
<?php
-/** @return array|false */
-function token_get_all(string $source, int $flags = 0) {}
+function token_get_all(string $source, int $flags = 0): array|false {}
function token_name(int $token): string {}
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_token_get_all, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_token_get_all, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
function xmlwriter_output_memory(XMLWriter $xmlwriter, bool $flush = true): string {}
-/** @return string|int */
-function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true) {}
+function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true): string|int {}
class XMLWriter
{
ZEND_ARG_TYPE_INFO(0, flush, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_xmlwriter_flush, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_xmlwriter_flush, 0, 1, MAY_BE_STRING|MAY_BE_LONG)
ZEND_ARG_OBJ_INFO(0, xmlwriter, XMLWriter, 0)
ZEND_ARG_TYPE_INFO(0, empty, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
*/
function zip_entry_close($zip_ent): bool {}
-/**
- * @param resource $zip_entry
- * @return string|false
- */
-function zip_entry_read($zip_entry, int $len = 1024) {}
+/** @param resource $zip_entry */
+function zip_entry_read($zip_entry, int $len = 1024): string|false {}
-/**
- * @param resource $zip_entry
- * @return string|false
- */
-function zip_entry_name($zip_entry) {}
+/** @param resource $zip_entry */
+function zip_entry_name($zip_entry): string|false {}
-/**
- * @param resource $zip_entry
- * @return int|false
- */
-function zip_entry_compressedsize($zip_entry) {}
+/** @param resource $zip_entry */
+function zip_entry_compressedsize($zip_entry): int|false {}
-/**
- * @param resource $zip_entry
- * @return int|false
- */
-function zip_entry_filesize($zip_entry) {}
+/** @param resource $zip_entry */
+function zip_entry_filesize($zip_entry): int|false {}
-/**
- * @param resource $zip_entry
- * @return string|false
- */
-function zip_entry_compressionmethod($zip_entry) {}
+/** @param resource $zip_entry */
+function zip_entry_compressionmethod($zip_entry): string|false {}
class ZipArchive
{
ZEND_ARG_INFO(0, zip_ent)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_read, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_read, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, zip_entry)
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_name, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, zip_entry)
ZEND_END_ARG_INFO()
-#define arginfo_zip_entry_compressedsize arginfo_zip_entry_name
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zip_entry_compressedsize, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, zip_entry)
+ZEND_END_ARG_INFO()
-#define arginfo_zip_entry_filesize arginfo_zip_entry_name
+#define arginfo_zip_entry_filesize arginfo_zip_entry_compressedsize
#define arginfo_zip_entry_compressionmethod arginfo_zip_entry_name
<?php
-/** @return string|false */
-function ob_gzhandler(string $data, int $flags) {}
+function ob_gzhandler(string $data, int $flags): string|false {}
-/** @return string|false */
-function zlib_get_coding_type() {}
+function zlib_get_coding_type(): string|false {}
-/** @return array|false */
-function gzfile(string $filename, int $use_include_path = 0) {}
+function gzfile(string $filename, int $use_include_path = 0): array|false {}
/** @return resource|false */
function gzopen(string $filename, string $mode, int $use_include_path = 0) {}
-/** @return int|false */
-function readgzfile(string $filename, int $use_include_path = 0) {}
+function readgzfile(string $filename, int $use_include_path = 0): int|false {}
-/** @return string|false */
-function zlib_encode(string $data, int $encoding, int $level = -1) {}
+function zlib_encode(string $data, int $encoding, int $level = -1): string|false {}
-/** @return string|false */
-function zlib_decode(string $data, int $max_decoded_len = 0) {}
+function zlib_decode(string $data, int $max_decoded_len = 0): string|false {}
-/** @return string|false */
-function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW) {}
+function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {}
-/** @return string|false */
-function gzencode(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_GZIP) {}
+function gzencode(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_GZIP): string|false {}
-/** @return string|false */
-function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE) {}
+function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {}
-/** @return string|false */
-function gzinflate(string $data, int $max_decoded_len = 0) {}
+function gzinflate(string $data, int $max_decoded_len = 0): string|false {}
-/** @return string|false */
-function gzdecode(string $data, int $max_decoded_len = 0) {}
+function gzdecode(string $data, int $max_decoded_len = 0): string|false {}
-/** @return string|false */
-function gzuncompress(string $data, int $max_decoded_len = 0) {}
+function gzuncompress(string $data, int $max_decoded_len = 0): string|false {}
-/**
- * @param resource $fp
- *
- * @return int|false
- */
-function gzwrite($fp, string $str, int $length = UNKNOWN) {};
+/** @param resource $fp */
+function gzwrite($fp, string $str, int $length = UNKNOWN): int|false {};
-/**
- * @param resource $fp
- *
- * @return int|false
- */
-function gzputs($fp, string $str, int $length = UNKNOWN) {};
+/** @param resource $fp */
+function gzputs($fp, string $str, int $length = UNKNOWN): int|false {};
/** @param resource $fp */
function gzrewind($fp): bool {};
/** @param resource $fp */
function gzeof($fp): bool {};
-/**
- * @param resource $fp
- *
- * @return string|false
- */
-function gzgetc($fp) {};
+/** @param resource $fp */
+function gzgetc($fp): string|false {};
/** @param resource $fp */
function gzpassthru($fp): int {};
/** @param resource $fp */
function gzseek($fp, int $offset, int $whence = SEEK_SET): int {};
-/**
- * @param resource $fp
- *
- * @return int|false
- */
-function gztell($fp) {};
-
-/**
- * @param resource $fp
- *
- * @return string|false
- */
-function gzread($fp, int $length) {};
-
-/**
- * @param resource $fp
- *
- * @return string|false
- */
-function gzgets($fp, int $length = 1024) {};
+/** @param resource $fp */
+function gztell($fp): int|false {};
+
+/** @param resource $fp */
+function gzread($fp, int $length): string|false {};
+
+/** @param resource $fp */
+function gzgets($fp, int $length = 1024): string|false {};
/** @return resource|false */
function deflate_init(int $encoding, array $options = []) {};
-/**
- * @param resource $resource
- *
- * @return string|false
- */
-function deflate_add($resource, string $add, int $flush_behavior = ZLIB_SYNC_FLUSH) {};
+/** @param resource $resource */
+function deflate_add($resource, string $add, int $flush_behavior = ZLIB_SYNC_FLUSH): string|false {};
/** @return resource|false */
function inflate_init(int $encoding, array $options = []) {};
-/**
- * @param resource $context
- *
- * @return string|false
- */
-function inflate_add($context, string $encoded_data, int $flush_mode = ZLIB_SYNC_FLUSH) {};
-
-/**
- * @param resource $resource
- *
- * @return int|false
- */
-function inflate_get_status($resource) {};
-
-/**
- * @param resource $resource
- *
- * @return int|false
- */
-function inflate_get_read_len($resource) {};
+/** @param resource $context */
+function inflate_add($context, string $encoded_data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {};
+
+/** @param resource $resource */
+function inflate_get_status($resource): int|false {};
+
+/** @param resource $resource */
+function inflate_get_read_len($resource): int|false {};
/* This is a generated file, edit the .stub.php file instead. */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_gzhandler, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ob_gzhandler, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_zlib_get_coding_type, 0, 0, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zlib_get_coding_type, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzfile, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzfile, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, use_include_path, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, use_include_path, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_readgzfile arginfo_gzfile
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readgzfile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, use_include_path, IS_LONG, 0)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_zlib_encode, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zlib_encode, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, level, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_zlib_decode, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_zlib_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, max_decoded_len, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzdeflate, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzdeflate, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, level, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, encoding, IS_LONG, 0)
#define arginfo_gzuncompress arginfo_zlib_decode
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzwrite, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzwrite, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, fp)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
#define arginfo_gzeof arginfo_gzrewind
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzgetc, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzgetc, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, fp)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, whence, IS_LONG, 0)
ZEND_END_ARG_INFO()
-#define arginfo_gztell arginfo_gzgetc
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gztell, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
+ ZEND_ARG_INFO(0, fp)
+ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzread, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzread, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, fp)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_gzgets, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzgets, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, fp)
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_deflate_add, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_deflate_add, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, resource)
ZEND_ARG_TYPE_INFO(0, add, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flush_behavior, IS_LONG, 0)
#define arginfo_inflate_init arginfo_deflate_init
-ZEND_BEGIN_ARG_INFO_EX(arginfo_inflate_add, 0, 0, 2)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_inflate_add, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, context)
ZEND_ARG_TYPE_INFO(0, encoded_data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, flush_mode, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_inflate_get_status, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_inflate_get_status, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_INFO(0, resource)
ZEND_END_ARG_INFO()
Parameter #3 [ <optional> int $flags ]
Parameter #4 [ <optional> int $offset ]
}
+ - Return [ int|false ]
}
Function [ <internal:pcre> function preg_match_all ] {
Parameter #3 [ <optional> int $flags ]
Parameter #4 [ <optional> int $offset ]
}
+ - Return [ int|false|null ]
}
Function [ <internal:pcre> function preg_replace ] {
Parameter #3 [ <optional> int $limit ]
Parameter #4 [ <optional> &$count ]
}
+ - Return [ array|string|null ]
}
Function [ <internal:pcre> function preg_replace_callback ] {
Parameter #4 [ <optional> &$count ]
Parameter #5 [ <optional> int $flags ]
}
+ - Return [ array|string|null ]
}
Function [ <internal:pcre> function preg_replace_callback_array ] {
Parameter #3 [ <optional> &$count ]
Parameter #4 [ <optional> int $flags ]
}
+ - Return [ array|string|null ]
}
Function [ <internal:pcre> function preg_filter ] {
Parameter #3 [ <optional> int $limit ]
Parameter #4 [ <optional> &$count ]
}
+ - Return [ array|string|null ]
}
Function [ <internal:pcre> function preg_split ] {
Parameter #2 [ <optional> int $limit ]
Parameter #3 [ <optional> int $flags ]
}
+ - Return [ array|false ]
}
Function [ <internal:pcre> function preg_quote ] {
Parameter #1 [ <required> array $input ]
Parameter #2 [ <optional> int $flags ]
}
+ - Return [ array|false ]
}
Function [ <internal:pcre> function preg_last_error ] {
function phpdbg_prompt(string $string): void {}
-/** @return string|bool */
-function phpdbg_exec(string $context) {}
+function phpdbg_exec(string $context): string|bool {}
function phpdbg_clear(): void {}
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_phpdbg_exec, 0, 0, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phpdbg_exec, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
ZEND_ARG_TYPE_INFO(0, context, IS_STRING, 0)
ZEND_END_ARG_INFO()
public function toTypeMask() {
assert($this->isBuiltin);
switch (strtolower($this->name)) {
+ case "null":
+ return "MAY_BE_NULL";
case "false":
return "MAY_BE_FALSE";
case "bool":