Developing PHP Win32 Extensions

What are the first steps to creating a loadable DLL module extension for PHP to create my own native library support for Windows?

Does PHP recompile on windows? What tools are needed? I do not want to use exec and the command line.

+6
php module dll php-extension
source share
2 answers

Q. Will you need to recompile PHP on Windows?
A. Not necessarily, but this is the easiest way.

The command line is your best friend (apple, after several years of GUI improved by MACOS by ... reading the shell back)

I would try the following:

but. Set up the mingw-msys system to win.
B. Follow the PHP Extension Guide :
1. Download the PHP Source Code
2. Build PHP to develop extensions using the above MSYS
3. Generate the extension skeleton with ext_skel, your extension will be in the ext / directory

4. Edit config.w32 (this is a javascript macro to generate a Makefile similar to m4)
...
Continue by following these steps:
http://www.php.net/manual/en/internals2.php
http://talks.somabo.de/200610_zend_conf_php_extension_development.pdf

+3
source share

See the basic steps for compiling PHP or PHP extensions:

https://wiki.php.net/internals/windows/stepbystepbuild

+3
source share

All Articles