From 2339b8999a11a400daa375eb04047cd82e3ad6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sat, 4 Apr 2020 14:53:37 +0200 Subject: [PATCH] Generate function entries for a couple of extensions --- ext/bcmath/bcmath.c | 16 +--- ext/bcmath/bcmath.stub.php | 2 + ext/bcmath/bcmath_arginfo.h | 27 ++++++ ext/bcmath/php_bcmath.h | 11 --- ext/calendar/calendar.c | 25 +----- ext/calendar/calendar.stub.php | 2 + ext/calendar/calendar_arginfo.h | 43 +++++++++ ext/calendar/php_calendar.h | 19 ---- ext/com_dotnet/com_extension.c | 39 +------- ext/com_dotnet/com_extension.stub.php | 5 ++ ext/com_dotnet/com_extension_arginfo.h | 80 +++++++++++++++++ ext/com_dotnet/php_com_dotnet_internal.h | 39 -------- ext/ctype/ctype.c | 54 +++-------- ext/ctype/ctype.stub.php | 2 + ext/ctype/ctype_arginfo.h | 29 ++++++ ext/curl/curl.stub.php | 23 +++-- ext/curl/curl_arginfo.h | 109 +++++++++++++++++++++-- ext/curl/interface.c | 41 +-------- ext/curl/php_curl.h | 46 ---------- ext/date/php_date.c | 64 +------------ ext/date/php_date.h | 54 ----------- ext/date/php_date.stub.php | 3 +- ext/date/php_date_arginfo.h | 103 +++++++++++++++++++++ ext/dba/dba.c | 24 +---- ext/dba/dba.stub.php | 2 + ext/dba/dba_arginfo.h | 37 ++++++++ ext/dba/php_dba.h | 16 ---- ext/dom/dom.stub.php | 2 + ext/dom/dom_arginfo.h | 9 ++ ext/dom/php_dom.c | 7 +- ext/enchant/enchant.c | 32 +------ ext/enchant/enchant.stub.php | 2 + ext/enchant/enchant_arginfo.h | 49 ++++++++++ ext/enchant/php_enchant.h | 23 ----- ext/exif/exif.c | 13 +-- ext/exif/exif.stub.php | 2 + ext/exif/exif_arginfo.h | 15 ++++ ext/exif/php_exif.h | 4 - ext/fileinfo/fileinfo.c | 16 +--- ext/fileinfo/fileinfo.stub.php | 2 + ext/fileinfo/fileinfo_arginfo.h | 19 ++++ ext/fileinfo/php_fileinfo.h | 7 -- 42 files changed, 570 insertions(+), 547 deletions(-) diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 5d0d47f7c0026..8c46ee0f9344e 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -33,24 +33,10 @@ ZEND_DECLARE_MODULE_GLOBALS(bcmath) static PHP_GINIT_FUNCTION(bcmath); static PHP_GSHUTDOWN_FUNCTION(bcmath); -static const zend_function_entry bcmath_functions[] = { - PHP_FE(bcadd, arginfo_bcadd) - PHP_FE(bcsub, arginfo_bcsub) - PHP_FE(bcmul, arginfo_bcmul) - PHP_FE(bcdiv, arginfo_bcdiv) - PHP_FE(bcmod, arginfo_bcmod) - PHP_FE(bcpow, arginfo_bcpow) - PHP_FE(bcsqrt, arginfo_bcsqrt) - PHP_FE(bcscale, arginfo_bcscale) - PHP_FE(bccomp, arginfo_bccomp) - PHP_FE(bcpowmod, arginfo_bcpowmod) - PHP_FE_END -}; - zend_module_entry bcmath_module_entry = { STANDARD_MODULE_HEADER, "bcmath", - bcmath_functions, + ext_functions, PHP_MINIT(bcmath), PHP_MSHUTDOWN(bcmath), NULL, diff --git a/ext/bcmath/bcmath.stub.php b/ext/bcmath/bcmath.stub.php index 0a975352bb857..6ef6cc0926f4a 100644 --- a/ext/bcmath/bcmath.stub.php +++ b/ext/bcmath/bcmath.stub.php @@ -1,5 +1,7 @@ = 0x070f04 /* 7.15.4 */ /** @param resource $handle */ function curl_escape($handle, string $string): string|false {} +/** @param resource $handle */ +function curl_unescape($handle, string $string): string|false {} + +/** + * @param resource $multi_handle + * @param mixed $value + */ +function curl_multi_setopt($multi_handle, int $option, $value): bool {} + +#endif + /** @param resource $handle */ function curl_exec($handle): string|bool {} @@ -72,12 +86,6 @@ function curl_multi_remove_handle($multi_handle, $handle): int {} /** @param resource $multi_handle */ function curl_multi_select($multi_handle, float $timeout = 1.0): int {} -/** - * @param resource $multi_handle - * @param mixed $value - */ -function curl_multi_setopt($multi_handle, int $option, $value): bool {} - function curl_multi_strerror(int $error_number): ?string {} #if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ @@ -113,7 +121,4 @@ function curl_share_strerror(int $error_number): ?string {} function curl_strerror(int $error_number): ?string {} -/** @param resource $handle */ -function curl_unescape($handle, string $string): string|false {} - function curl_version(int $age = UNKNOWN): array|false {} diff --git a/ext/curl/curl_arginfo.h b/ext/curl/curl_arginfo.h index a7ae7a071b08f..9f20f3a4f2c25 100644 --- a/ext/curl/curl_arginfo.h +++ b/ext/curl/curl_arginfo.h @@ -16,10 +16,24 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_error, 0, 1, IS_STRING, 0) ZEND_ARG_INFO(0, handle) ZEND_END_ARG_INFO() +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 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() +#endif + +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ +#define arginfo_curl_unescape arginfo_curl_escape +#endif + +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_setopt, 0, 3, _IS_BOOL, 0) + ZEND_ARG_INFO(0, multi_handle) + ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() +#endif ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_exec, 0, 1, MAY_BE_STRING|MAY_BE_BOOL) ZEND_ARG_INFO(0, handle) @@ -77,12 +91,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_select, 0, 1, IS_LONG ZEND_ARG_TYPE_INFO(0, timeout, IS_DOUBLE, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_setopt, 0, 3, _IS_BOOL, 0) - ZEND_ARG_INFO(0, multi_handle) - ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_strerror, 0, 1, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, error_number, IS_LONG, 0) ZEND_END_ARG_INFO() @@ -127,8 +135,93 @@ ZEND_END_ARG_INFO() #define arginfo_curl_strerror arginfo_curl_multi_strerror -#define arginfo_curl_unescape arginfo_curl_escape - 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() + + +ZEND_FUNCTION(curl_close); +ZEND_FUNCTION(curl_copy_handle); +ZEND_FUNCTION(curl_errno); +ZEND_FUNCTION(curl_error); +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ +ZEND_FUNCTION(curl_escape); +#endif +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ +ZEND_FUNCTION(curl_unescape); +#endif +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ +ZEND_FUNCTION(curl_multi_setopt); +#endif +ZEND_FUNCTION(curl_exec); +ZEND_FUNCTION(curl_file_create); +ZEND_FUNCTION(curl_getinfo); +ZEND_FUNCTION(curl_init); +ZEND_FUNCTION(curl_multi_add_handle); +ZEND_FUNCTION(curl_multi_close); +ZEND_FUNCTION(curl_multi_errno); +ZEND_FUNCTION(curl_multi_exec); +ZEND_FUNCTION(curl_multi_getcontent); +ZEND_FUNCTION(curl_multi_info_read); +ZEND_FUNCTION(curl_multi_init); +ZEND_FUNCTION(curl_multi_remove_handle); +ZEND_FUNCTION(curl_multi_select); +ZEND_FUNCTION(curl_multi_strerror); +#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ +ZEND_FUNCTION(curl_pause); +#endif +ZEND_FUNCTION(curl_reset); +ZEND_FUNCTION(curl_setopt_array); +ZEND_FUNCTION(curl_setopt); +ZEND_FUNCTION(curl_share_close); +ZEND_FUNCTION(curl_share_errno); +ZEND_FUNCTION(curl_share_init); +ZEND_FUNCTION(curl_share_setopt); +ZEND_FUNCTION(curl_share_strerror); +ZEND_FUNCTION(curl_strerror); +ZEND_FUNCTION(curl_version); + + +static const zend_function_entry ext_functions[] = { + ZEND_FE(curl_close, arginfo_curl_close) + ZEND_FE(curl_copy_handle, arginfo_curl_copy_handle) + ZEND_FE(curl_errno, arginfo_curl_errno) + ZEND_FE(curl_error, arginfo_curl_error) +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ + ZEND_FE(curl_escape, arginfo_curl_escape) +#endif +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ + ZEND_FE(curl_unescape, arginfo_curl_unescape) +#endif +#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ + ZEND_FE(curl_multi_setopt, arginfo_curl_multi_setopt) +#endif + ZEND_FE(curl_exec, arginfo_curl_exec) + ZEND_FE(curl_file_create, arginfo_curl_file_create) + ZEND_FE(curl_getinfo, arginfo_curl_getinfo) + ZEND_FE(curl_init, arginfo_curl_init) + ZEND_FE(curl_multi_add_handle, arginfo_curl_multi_add_handle) + ZEND_FE(curl_multi_close, arginfo_curl_multi_close) + ZEND_FE(curl_multi_errno, arginfo_curl_multi_errno) + ZEND_FE(curl_multi_exec, arginfo_curl_multi_exec) + ZEND_FE(curl_multi_getcontent, arginfo_curl_multi_getcontent) + ZEND_FE(curl_multi_info_read, arginfo_curl_multi_info_read) + ZEND_FE(curl_multi_init, arginfo_curl_multi_init) + ZEND_FE(curl_multi_remove_handle, arginfo_curl_multi_remove_handle) + ZEND_FE(curl_multi_select, arginfo_curl_multi_select) + ZEND_FE(curl_multi_strerror, arginfo_curl_multi_strerror) +#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ + ZEND_FE(curl_pause, arginfo_curl_pause) +#endif + ZEND_FE(curl_reset, arginfo_curl_reset) + ZEND_FE(curl_setopt_array, arginfo_curl_setopt_array) + ZEND_FE(curl_setopt, arginfo_curl_setopt) + ZEND_FE(curl_share_close, arginfo_curl_share_close) + ZEND_FE(curl_share_errno, arginfo_curl_share_errno) + ZEND_FE(curl_share_init, arginfo_curl_share_init) + ZEND_FE(curl_share_setopt, arginfo_curl_share_setopt) + ZEND_FE(curl_share_strerror, arginfo_curl_share_strerror) + ZEND_FE(curl_strerror, arginfo_curl_strerror) + ZEND_FE(curl_version, arginfo_curl_version) + ZEND_FE_END +}; diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 38eb40a3020c5..12762cd7f44d4 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -215,51 +215,12 @@ void _php_curl_verify_handlers(php_curl *ch, int reporterror) /* {{{ */ } /* }}} */ -/* {{{ curl_functions[] - */ -static const zend_function_entry curl_functions[] = { - PHP_FE(curl_init, arginfo_curl_init) - PHP_FE(curl_copy_handle, arginfo_curl_copy_handle) - PHP_FE(curl_version, arginfo_curl_version) - PHP_FE(curl_setopt, arginfo_curl_setopt) - PHP_FE(curl_setopt_array, arginfo_curl_setopt_array) - PHP_FE(curl_exec, arginfo_curl_exec) - PHP_FE(curl_getinfo, arginfo_curl_getinfo) - PHP_FE(curl_error, arginfo_curl_error) - PHP_FE(curl_errno, arginfo_curl_errno) - PHP_FE(curl_close, arginfo_curl_close) - PHP_FE(curl_strerror, arginfo_curl_strerror) - PHP_FE(curl_multi_strerror, arginfo_curl_multi_strerror) - PHP_FE(curl_share_strerror, arginfo_curl_share_strerror) - PHP_FE(curl_reset, arginfo_curl_reset) - PHP_FE(curl_escape, arginfo_curl_escape) - PHP_FE(curl_unescape, arginfo_curl_unescape) - PHP_FE(curl_pause, arginfo_curl_pause) - PHP_FE(curl_file_create, arginfo_curl_file_create) - PHP_FE(curl_multi_init, arginfo_curl_multi_init) - PHP_FE(curl_multi_add_handle, arginfo_curl_multi_add_handle) - PHP_FE(curl_multi_remove_handle, arginfo_curl_multi_remove_handle) - PHP_FE(curl_multi_select, arginfo_curl_multi_select) - PHP_FE(curl_multi_exec, arginfo_curl_multi_exec) - PHP_FE(curl_multi_getcontent, arginfo_curl_multi_getcontent) - PHP_FE(curl_multi_info_read, arginfo_curl_multi_info_read) - PHP_FE(curl_multi_close, arginfo_curl_multi_close) - PHP_FE(curl_multi_errno, arginfo_curl_multi_errno) - PHP_FE(curl_multi_setopt, arginfo_curl_multi_setopt) - PHP_FE(curl_share_init, arginfo_curl_share_init) - PHP_FE(curl_share_close, arginfo_curl_share_close) - PHP_FE(curl_share_setopt, arginfo_curl_share_setopt) - PHP_FE(curl_share_errno, arginfo_curl_share_errno) - PHP_FE_END -}; -/* }}} */ - /* {{{ curl_module_entry */ zend_module_entry curl_module_entry = { STANDARD_MODULE_HEADER, "curl", - curl_functions, + ext_functions, PHP_MINIT(curl), PHP_MSHUTDOWN(curl), NULL, diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index ec74e96956fc2..e7e9361e0e022 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -72,52 +72,6 @@ PHP_MINIT_FUNCTION(curl); PHP_MSHUTDOWN_FUNCTION(curl); PHP_MINFO_FUNCTION(curl); -PHP_FUNCTION(curl_close); -PHP_FUNCTION(curl_copy_handle); -PHP_FUNCTION(curl_errno); -PHP_FUNCTION(curl_error); -PHP_FUNCTION(curl_exec); -PHP_FUNCTION(curl_getinfo); -PHP_FUNCTION(curl_init); -PHP_FUNCTION(curl_setopt); -PHP_FUNCTION(curl_setopt_array); -PHP_FUNCTION(curl_version); - -PHP_FUNCTION(curl_multi_add_handle); -PHP_FUNCTION(curl_multi_close); -PHP_FUNCTION(curl_multi_exec); -PHP_FUNCTION(curl_multi_getcontent); -PHP_FUNCTION(curl_multi_info_read); -PHP_FUNCTION(curl_multi_init); -PHP_FUNCTION(curl_multi_remove_handle); -PHP_FUNCTION(curl_multi_select); -PHP_FUNCTION(curl_multi_errno); - -PHP_FUNCTION(curl_share_close); -PHP_FUNCTION(curl_share_init); -PHP_FUNCTION(curl_share_setopt); -PHP_FUNCTION(curl_share_errno); - -PHP_FUNCTION(curl_strerror); -PHP_FUNCTION(curl_multi_strerror); -PHP_FUNCTION(curl_share_strerror); - -PHP_FUNCTION(curl_reset); - -#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ -PHP_FUNCTION(curl_escape); -PHP_FUNCTION(curl_unescape); - -PHP_FUNCTION(curl_multi_setopt); -#endif - -#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ -PHP_FUNCTION(curl_pause); -#endif - -PHP_FUNCTION(curl_file_create); - - void _php_curl_multi_close(zend_resource *); void _php_curl_share_close(zend_resource *); diff --git a/ext/date/php_date.c b/ext/date/php_date.c index ed24895965688..5c6825e50f3c5 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -76,68 +76,6 @@ PHPAPI time_t php_time() #include "php_date_arginfo.h" -/* {{{ Function table */ -static const zend_function_entry date_functions[] = { - PHP_FE(strtotime, arginfo_strtotime) - PHP_FE(date, arginfo_date) - PHP_FE(idate, arginfo_idate) - PHP_FE(gmdate, arginfo_gmdate) - PHP_FE(mktime, arginfo_mktime) - PHP_FE(gmmktime, arginfo_gmmktime) - PHP_FE(checkdate, arginfo_checkdate) - PHP_FE(strftime, arginfo_strftime) - PHP_FE(gmstrftime, arginfo_gmstrftime) - PHP_FE(time, arginfo_time) - PHP_FE(localtime, arginfo_localtime) - PHP_FE(getdate, arginfo_getdate) - - /* Advanced Interface */ - PHP_FE(date_create, arginfo_date_create) - PHP_FE(date_create_immutable, arginfo_date_create_immutable) - PHP_FE(date_create_from_format, arginfo_date_create_from_format) - PHP_FE(date_create_immutable_from_format, arginfo_date_create_immutable_from_format) - PHP_FE(date_parse, arginfo_date_parse) - PHP_FE(date_parse_from_format, arginfo_date_parse_from_format) - PHP_FE(date_get_last_errors, arginfo_date_get_last_errors) - PHP_FE(date_format, arginfo_date_format) - PHP_FE(date_modify, arginfo_date_modify) - PHP_FE(date_add, arginfo_date_add) - PHP_FE(date_sub, arginfo_date_sub) - PHP_FE(date_timezone_get, arginfo_date_timezone_get) - PHP_FE(date_timezone_set, arginfo_date_timezone_set) - PHP_FE(date_offset_get, arginfo_date_offset_get) - PHP_FE(date_diff, arginfo_date_diff) - - PHP_FE(date_time_set, arginfo_date_time_set) - PHP_FE(date_date_set, arginfo_date_date_set) - PHP_FE(date_isodate_set, arginfo_date_isodate_set) - PHP_FE(date_timestamp_set, arginfo_date_timestamp_set) - PHP_FE(date_timestamp_get, arginfo_date_timestamp_get) - - PHP_FE(timezone_open, arginfo_timezone_open) - PHP_FE(timezone_name_get, arginfo_timezone_name_get) - PHP_FE(timezone_name_from_abbr, arginfo_timezone_name_from_abbr) - PHP_FE(timezone_offset_get, arginfo_timezone_offset_get) - PHP_FE(timezone_transitions_get, arginfo_timezone_transitions_get) - PHP_FE(timezone_location_get, arginfo_timezone_location_get) - PHP_FE(timezone_identifiers_list, arginfo_timezone_identifiers_list) - PHP_FE(timezone_abbreviations_list, arginfo_timezone_abbreviations_list) - PHP_FE(timezone_version_get, arginfo_timezone_version_get) - - PHP_FE(date_interval_create_from_date_string, arginfo_date_interval_create_from_date_string) - PHP_FE(date_interval_format, arginfo_date_interval_format) - - /* Options and Configuration */ - PHP_FE(date_default_timezone_set, arginfo_date_default_timezone_set) - PHP_FE(date_default_timezone_get, arginfo_date_default_timezone_get) - - /* Astronomical functions */ - PHP_FE(date_sunrise, arginfo_date_sunrise) - PHP_FE(date_sunset, arginfo_date_sunset) - PHP_FE(date_sun_info, arginfo_date_sun_info) - PHP_FE_END -}; - static const zend_function_entry date_funcs_interface[] = { PHP_ABSTRACT_ME(DateTimeInterface, format, arginfo_class_DateTimeInterface_format) PHP_ABSTRACT_ME(DateTimeInterface, getTimezone, arginfo_class_DateTimeInterface_getTimezone) @@ -350,7 +288,7 @@ zend_module_entry date_module_entry = { NULL, NULL, "date", /* extension name */ - date_functions, /* function list */ + ext_functions, /* function list */ PHP_MINIT(date), /* process startup */ PHP_MSHUTDOWN(date), /* process shutdown */ PHP_RINIT(date), /* request startup */ diff --git a/ext/date/php_date.h b/ext/date/php_date.h index 8458b0187e235..e3008e47e01b0 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -26,48 +26,12 @@ extern zend_module_entry date_module_entry; #define phpext_date_ptr &date_module_entry -PHP_FUNCTION(date); -PHP_FUNCTION(idate); -PHP_FUNCTION(gmdate); -PHP_FUNCTION(strtotime); - -PHP_FUNCTION(mktime); -PHP_FUNCTION(gmmktime); - -PHP_FUNCTION(checkdate); -PHP_FUNCTION(strftime); -PHP_FUNCTION(gmstrftime); -PHP_FUNCTION(time); -PHP_FUNCTION(localtime); -PHP_FUNCTION(getdate); - /* Advanced Interface */ PHP_METHOD(DateTime, __construct); PHP_METHOD(DateTime, __wakeup); PHP_METHOD(DateTime, __set_state); PHP_METHOD(DateTime, createFromImmutable); PHP_METHOD(DateTime, createFromInterface); -PHP_FUNCTION(date_create); -PHP_FUNCTION(date_create_immutable); -PHP_FUNCTION(date_create_from_format); -PHP_FUNCTION(date_create_immutable_from_format); -PHP_FUNCTION(date_parse); -PHP_FUNCTION(date_parse_from_format); -PHP_FUNCTION(date_get_last_errors); -PHP_FUNCTION(date_format); -PHP_FUNCTION(date_modify); -PHP_FUNCTION(date_add); -PHP_FUNCTION(date_sub); -PHP_FUNCTION(date_timezone_get); -PHP_FUNCTION(date_timezone_set); -PHP_FUNCTION(date_offset_get); -PHP_FUNCTION(date_diff); - -PHP_FUNCTION(date_time_set); -PHP_FUNCTION(date_date_set); -PHP_FUNCTION(date_isodate_set); -PHP_FUNCTION(date_timestamp_set); -PHP_FUNCTION(date_timestamp_get); PHP_METHOD(DateTimeImmutable, __construct); PHP_METHOD(DateTimeImmutable, __set_state); @@ -85,15 +49,6 @@ PHP_METHOD(DateTimeImmutable, createFromInterface); PHP_METHOD(DateTimeZone, __construct); PHP_METHOD(DateTimeZone, __wakeup); PHP_METHOD(DateTimeZone, __set_state); -PHP_FUNCTION(timezone_open); -PHP_FUNCTION(timezone_name_get); -PHP_FUNCTION(timezone_name_from_abbr); -PHP_FUNCTION(timezone_offset_get); -PHP_FUNCTION(timezone_transitions_get); -PHP_FUNCTION(timezone_location_get); -PHP_FUNCTION(timezone_identifiers_list); -PHP_FUNCTION(timezone_abbreviations_list); -PHP_FUNCTION(timezone_version_get); PHP_METHOD(DateInterval, __construct); PHP_METHOD(DateInterval, __wakeup); @@ -109,15 +64,6 @@ PHP_METHOD(DatePeriod, getEndDate); PHP_METHOD(DatePeriod, getDateInterval); PHP_METHOD(DatePeriod, getRecurrences); -/* Options and Configuration */ -PHP_FUNCTION(date_default_timezone_set); -PHP_FUNCTION(date_default_timezone_get); - -/* Astro functions */ -PHP_FUNCTION(date_sunrise); -PHP_FUNCTION(date_sunset); -PHP_FUNCTION(date_sun_info); - PHP_RINIT_FUNCTION(date); PHP_RSHUTDOWN_FUNCTION(date); PHP_MINIT_FUNCTION(date); diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php index e9985dd6b2216..23936a9d487a1 100644 --- a/ext/date/php_date.stub.php +++ b/ext/date/php_date.stub.php @@ -1,7 +1,6 @@