I'm currently rewriting a PHP
Extension that was originally written for PHP 4.2.2.
My issue is having the build/compile process generate a .dll
instead of compiling the extension into the PHP
core. The environment is windows server 2003. I'm using Visual Studio 2008.
I used the EXT_SKEL script to generate the framework, and I can succesfully compile the extension into the php core. I'm trying to instead compile it as a .dll
so I can easily distribute it to my clients. Can anyone point me in the right direction for how to tell the PHP 5.3
build process that i'd like to compile my extension as a .dll
instead of staticly into PHP
itself?
To build the extension's framework I run:
php.exe
ext_skel_win32.php --extname=myextension --proto=myprototypefile.dat
buildconf.bat
cscript /nologo configure.js
I confirm that I can run the extension's methods from within PHP, however it does not produce a distributable .dll. instead it compiles the methods into the PHP binary. Can anyone point me in the right direction?
Try
configure.js --enable-myextension=shared
edit: might also be
configure.js --with-myextension=shared
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With