i’m trying to compile a shared extension for php 8.3.6 x64 for windows
i basicly followed these instructions: https://ourcodeworld.com/articles/read/804/how-to-compile-a-php-extension-dll-file-in-windows-with-visual-studio#disqus_thread
Problem: PHP Warning: PHP Startup: Unable to load dynamic library 'php_mailparse.dll' (tried: ./extphp_mailparse.dll (Die angegebene Prozedur wurde nicht gefunden)) in Unknown on line 0
so what did i do:
- installed basic components of Visual Studio 2019
- create folder c:php-sdk
- extracted php-source from https://www.php.net/distributions/php-8.3.6.tar.gz into php-sdk
- extracted contents of https://pecl.php.net/get/mailparse-3.1.6.tgz to php-sdk/ext/mailparse
as of instructions i should run buildconf and configure, what it said binary tools are missing, so - downloaded https://github.com/php/php-sdk-binary-tools and extracted to php-sdk/php-sdk-binary-tools-master
- open vs command prompt
- goto php-sdk/php-sdk-binary-tools-master
- run phpsdk-vs16-x64.bat
- go back to php-sdk
- run
configure --disable-all --enable-cli --enable-mbstring --enable-mailparse --disable-zts --with-all-shared
output:
-----------------------
| Extension | Mode |
-----------------------
...
| mailparse | shared |
...
-----------------------
Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli |
-------------
-----------------------------------------
| Build type | Release |
| Thread Safety | No |
| Compiler | Visual C++ 2019 |
| Target Architecture | x64 |
| Host Architecture | x64 |
| Optimization | PGO disabled |
| Native intrinsics | SSE2 |
| Static analyzer | disabled |
-----------------------------------------
- run nmake
now in php-sdkx64Release i found a php_mailparse.dll, but this dll gives me the error written at the beginning … anybody know what i’ve done wrong?