Fix 'PHP_EXTNAME_SHARED' is undefined #24
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to build the extension on Windows for PHP 7.3.0 and get this error
C:\php-sdk\php-7.3.0\vc15\x64\php-7.3.0-src\configure.js(6120, 3) Microsoft JScript runtime error: 'PHP_EXTNAME_SHARED' is undefined
when runningconfigure --disable-all --enable-cli --with-vips
.It seems the same issue is causing pecl.php.net not being able build the Windows binaries:
https://windows.php.net/downloads/pecl/releases/vips/1.0.9/logs/php_vips-1.0.9-7.2-ts-vc15-x64-logs.zip -> configure-php_vips-1.0.9-7.2-ts-vc15-x64.txt
https://windows.php.net/downloads/pecl/releases/vips/1.0.9/
I have not been able to find the docs describing what the third argument for the EXTENSION function in the config.w32 files does but looking at official extensions they pass PHP_ extension name _SHARED.
Changing the variable name from:
to:
fixes the issue and now executes
configure --disable-all --enable-cli --with-vips
without error.