mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
MFH: use PHP_ME_MAPPING rather than ZEND_NAMED_FE/ZEND_FN
This commit is contained in:
parent
4f4e724b1b
commit
07a16d19e0
@ -198,25 +198,25 @@ zend_function_entry date_functions[] = {
|
||||
};
|
||||
|
||||
zend_function_entry date_funcs_date[] = {
|
||||
PHP_ME(DateTime, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
|
||||
ZEND_NAMED_FE(format, ZEND_FN(date_format), NULL)
|
||||
ZEND_NAMED_FE(modify, ZEND_FN(date_modify), NULL)
|
||||
ZEND_NAMED_FE(getTimezone, ZEND_FN(date_timezone_get), NULL)
|
||||
ZEND_NAMED_FE(setTimezone, ZEND_FN(date_timezone_set), NULL)
|
||||
ZEND_NAMED_FE(getOffset, ZEND_FN(date_offset_get), NULL)
|
||||
ZEND_NAMED_FE(setTime, ZEND_FN(date_time_set), NULL)
|
||||
ZEND_NAMED_FE(setDate, ZEND_FN(date_date_set), NULL)
|
||||
ZEND_NAMED_FE(setISODate, ZEND_FN(date_isodate_set), NULL)
|
||||
PHP_ME(DateTime, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
|
||||
PHP_ME_MAPPING(format, date_format, NULL, 0)
|
||||
PHP_ME_MAPPING(modify, date_modify, NULL, 0)
|
||||
PHP_ME_MAPPING(getTimezone, date_timezone_get, NULL, 0)
|
||||
PHP_ME_MAPPING(setTimezone, date_timezone_set, NULL, 0)
|
||||
PHP_ME_MAPPING(getOffset, date_offset_get, NULL, 0)
|
||||
PHP_ME_MAPPING(setTime, date_time_set, NULL, 0)
|
||||
PHP_ME_MAPPING(setDate, date_date_set, NULL, 0)
|
||||
PHP_ME_MAPPING(setISODate, date_isodate_set, NULL, 0)
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
zend_function_entry date_funcs_timezone[] = {
|
||||
PHP_ME(DateTimeZone, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
|
||||
ZEND_NAMED_FE(getName, ZEND_FN(timezone_name_get), NULL)
|
||||
ZEND_NAMED_FE(getOffset, ZEND_FN(timezone_offset_get), NULL)
|
||||
ZEND_NAMED_FE(getTransitions, ZEND_FN(timezone_transitions_get), NULL)
|
||||
ZEND_ME_MAPPING(listAbbreviations, timezone_abbreviations_list, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
ZEND_ME_MAPPING(listIdentifiers, timezone_identifiers_list, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
PHP_ME(DateTimeZone, __construct, NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
|
||||
PHP_ME_MAPPING(getName, timezone_name_get, NULL, 0)
|
||||
PHP_ME_MAPPING(getOffset, timezone_offset_get, NULL, 0)
|
||||
PHP_ME_MAPPING(getTransitions, timezone_transitions_get, NULL, 0)
|
||||
PHP_ME_MAPPING(listAbbreviations, timezone_abbreviations_list, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
PHP_ME_MAPPING(listIdentifiers, timezone_identifiers_list, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user