You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Does it work when you replace INTERNAL_FUNCTION_PARAMETERS in the line of zend_update_exception_properties with zend_execute_data *execute_data, zval *return_value ? That seems to work for me.
The reason would be that INTERNAL_FUNCTION_PARAMETERS is defined in zend.h which is not included (and probably should indeed not be included).
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 Version
Operating System
WINDOWS 11
The text was updated successfully, but these errors were encountered: