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

From: Date: Tue, 10 Jun 2025 09:43:00 +0000
Subject: [php-src] Issue #18820: Windows compilation issue: php-src\Zend\zend_exceptions.h(75): error C2122: 'message': prototype parameter in name list
illegal
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250230@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/18820 Author: EdmondDantes ### Description https://github.com/true-async/php-src/blob/3e14dd521ffe5bdcadec031505590b49a1b564eb/Zend/zend_exceptions.h#L75-L75 There is a suspicion that the combination of BEGIN_EXTERN_C() + INTERNAL_FUNCTION_PARAMETERS macro with additional parameters doesn't work for MSVC in C++ mode. Errors: ``` php-src\Zend\zend_exceptions.h(75): error C2122: 'message': prototype parameter in name list illegal php-src\Zend\zend_exceptions.h(75): error C2122: 'code': prototype parameter in name list illegal php-src\Zend\zend_exceptions.h(75): error C2122: 'previous': prototype parameter in name list illegal ``` ```c BEGIN_EXTERN_C() ZEND_API zend_result zend_update_exception_properties(INTERNAL_FUNCTION_PARAMETERS, zend_string *message, zend_long code, zval *previous); END_EXTERN_C() ``` ### PHP Version ```plain PHP 8.4.0 ``` ### Operating System WINDOWS 11

« previous php.bugs (#250230) next »