ext/tidy: zend_parse_parameters_none -> ZEND_PARSE_PARAMETERS_NONE macro (#18913)

This commit is contained in:
David CARLIER 2025-06-22 19:47:36 +01:00 committed by GitHub
parent 4f1b005522
commit 01c3001eb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,9 +67,7 @@
#define TIDY_FETCH_ONLY_OBJECT \ #define TIDY_FETCH_ONLY_OBJECT \
PHPTidyObj *obj; \ PHPTidyObj *obj; \
if (zend_parse_parameters_none() != SUCCESS) { \ ZEND_PARSE_PARAMETERS_NONE(); \
RETURN_THROWS(); \
} \
obj = Z_TIDY_P(ZEND_THIS); \ obj = Z_TIDY_P(ZEND_THIS); \
#define TIDY_SET_DEFAULT_CONFIG(_doc) \ #define TIDY_SET_DEFAULT_CONFIG(_doc) \
@ -1140,9 +1138,7 @@ PHP_FUNCTION(tidy_diagnose)
/* {{{ Get release date (version) for Tidy library */ /* {{{ Get release date (version) for Tidy library */
PHP_FUNCTION(tidy_get_release) PHP_FUNCTION(tidy_get_release)
{ {
if (zend_parse_parameters_none() != SUCCESS) { ZEND_PARSE_PARAMETERS_NONE();
RETURN_THROWS();
}
#ifdef HAVE_TIDYRELEASEDATE #ifdef HAVE_TIDYRELEASEDATE
RETURN_STRING((const char *)tidyReleaseDate()); RETURN_STRING((const char *)tidyReleaseDate());