Skip to content

Remove unused PHP_DL_TEST_EXPORTS and PHP_ZEND_TEST_EXPORTS - #21109

Merged
petk merged 1 commit into
php:masterfrom
petk:patch-unused-win-defines
Feb 4, 2026
Merged

Remove unused PHP_DL_TEST_EXPORTS and PHP_ZEND_TEST_EXPORTS#21109
petk merged 1 commit into
php:masterfrom
petk:patch-unused-win-defines

Conversation

@petk

@petk petk commented Feb 1, 2026

Copy link
Copy Markdown
Member

In current code these aren't used on Windows build. The PHP_ZEND_TEST_EXPORTS was intended to fix MSVC level 1 (severe) warnings via 5a04796 but __declspec(dllexport) is now implemented unconditionally.

In current code these aren't used on Windows build. The
PHP_ZEND_TEST_EXPORTS was intended to fix MSVC level 1 (severe) warnings
via 5a04796 but __declspec(dllexport)
is now implemented unconditionally.
@petk

petk commented Feb 2, 2026

Copy link
Copy Markdown
Member Author

I'm merging this in the following days to limit syncing issues with build systems. When or if these definitions will be needed in the code, they can be re-added back explicitly as before.

@petk
petk merged commit 06dac62 into php:master Feb 4, 2026
9 of 10 checks passed
@petk
petk deleted the patch-unused-win-defines branch February 4, 2026 23:25
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request Aug 4, 2026
In current code these aren't used on Windows build. The
PHP_ZEND_TEST_EXPORTS was intended to fix MSVC level 1 (severe) warnings
via 5a0ee4f but __declspec(dllexport)
is now implemented unconditionally.
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