Skip to content

[Windows] fix dllexport/dllimport mismatch with clang#21547

Closed
henderkes wants to merge 1 commit intophp:PHP-8.5from
henderkes:8.5.4
Closed

[Windows] fix dllexport/dllimport mismatch with clang#21547
henderkes wants to merge 1 commit intophp:PHP-8.5from
henderkes:8.5.4

Conversation

@henderkes
Copy link
Contributor

@henderkes henderkes commented Mar 27, 2026

zend_closures.h defines this with ZEND_API (-> dllexport) while here it's defined without. leads to compilation error when using --with-toolset=clang

after changing this, everything compiles correctly and is a drop-in replacement, except with better performance (thanks again to Arnaud!)

edit: actually, not quite yet. configure.js doesn't perform the HAVE_PRESERVE_NONE check. Incoming in another PR!

@henderkes henderkes requested a review from dstogov as a code owner March 27, 2026 09:32
@henderkes henderkes changed the title [Windows] fix compilation PHPAPI mismatch with clang [Windows] fix dllexport/dllimport mismatch with clang Mar 27, 2026
@iluuu1994 iluuu1994 closed this in 3525895 Mar 27, 2026
@iluuu1994
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants