Recommended work flow for Win32 module compilation

php.internals

Patrick Barnes

20 years ago
Hi there, I was wondering what the recommended work flow was to generate shared modules compatible with the binary PHP .zip/installer for Win32. Additionally, what software would I need to use to compile my module? Regards, Patrick

Michael Wallner

20 years ago
Patrick Barnes wrote:
> Hi there, > > I was wondering what the recommended work flow was to generate shared > modules compatible with the binary PHP .zip/installer for Win32. > > Additionally, what software would I need to use to compile my module?
If you want your module to work with the stock Win32 PHP release, you'll need MSVC6. The rest is described in the manual. Regards,
-- Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz

Wez Furlong

20 years ago
On 12/3/05, Michael Wallner <mike@php.net> wrote:
> Patrick Barnes wrote: > > Hi there, > > > > I was wondering what the recommended work flow was to generate shared > > modules compatible with the binary PHP .zip/installer for Win32. > > > > Additionally, what software would I need to use to compile my module? > > If you want your module to work with the stock Win32 PHP release, > you'll need MSVC6. The rest is described in the manual.
VC6 or above... VC6 is really old now, and there are newer, free, versions of the MS compiler available. If you're targeting PHP 5, take a look at the README.WIN32-BUILD-SYSTEM file in the PHP source. --Wez.

Nuno Lopes

20 years ago
> On 12/3/05, Michael Wallner <mike@php.net> wrote: > > Patrick Barnes wrote: > > > Hi there, > > > > > > I was wondering what the recommended work flow was to generate shared > > > modules compatible with the binary PHP .zip/installer for Win32. > > > > > > Additionally, what software would I need to use to compile my module? > > > > If you want your module to work with the stock Win32 PHP release, > > you'll need MSVC6. The rest is described in the manual. > > VC6 or above... VC6 is really old now, and there are newer, free, > versions of the MS compiler available. > > If you're targeting PHP 5, take a look at the > README.WIN32-BUILD-SYSTEM file in the PHP source. > > --Wez.
The on-line manual has also been updated to reflect the PHP 5 build system: http://php.net/install.windows.building (based on above file writen by Wez). Nuno

Patrick Barnes

20 years ago
Wez,
> > If you want your module to work with the stock Win32 PHP release, > > you'll need MSVC6. The rest is described in the manual. > > VC6 or above... VC6 is really old now, and there are newer, free, > versions of the MS compiler available. > > If you're targeting PHP 5, take a look at the > README.WIN32-BUILD-SYSTEM file in the PHP source.
The reason I asked is that modules compiled with VS2005 don't seem to work with the stock Win32 PHP release, even after copying all the various DLLs into place. I forget the exact error, however. Works fine with the compiled with VS2005 PHP, though.
> --Wez.
Regards, Patrick

Wez Furlong

20 years ago
Yeah, we should persuade Edin to upgrade his compiler :) --Wez. On 12/4/05, Patrick Barnes <patrick.barnes@gmail.com> wrote: