Fix GH-18820: Windows compilation issue: php-src\Zend\zend_exceptions.h(75): error C2122: 'message': prototype parameter in name list illegal

INTERNAL_FUNCTION_PARAMETERS is defined in zend.h, but not included in
zend_exceptions.h (and it shouldn't). Expand the macro to fix the
compile issue.
This commit is contained in:
Niels Dossche 2025-06-10 21:54:29 +02:00
parent 7f3a2bc727
commit 0a95b2f30c
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5

View file

@ -69,7 +69,7 @@ ZEND_API zend_object *zend_throw_error_exception(zend_class_entry *exception_ce,
extern ZEND_API void (*zend_throw_exception_hook)(zend_object *ex); extern ZEND_API void (*zend_throw_exception_hook)(zend_object *ex);
ZEND_API zend_result zend_update_exception_properties(INTERNAL_FUNCTION_PARAMETERS, zend_string *message, zend_long code, zval *previous); ZEND_API zend_result zend_update_exception_properties(zend_execute_data *execute_data, zval *return_value, zend_string *message, zend_long code, zval *previous);
/* show an exception using zend_error(severity,...), severity should be E_ERROR */ /* show an exception using zend_error(severity,...), severity should be E_ERROR */
ZEND_API ZEND_COLD zend_result zend_exception_error(zend_object *exception, int severity); ZEND_API ZEND_COLD zend_result zend_exception_error(zend_object *exception, int severity);