How can I create a PHP extension on Windows?

In particular, I am trying to make a PHP extension for WampServer, which I use to test PHP scripts on my PC. I know that for the extension of PHP a config.m4 file is required, and some C / C ++ code is created in PHP. How can I get these .c / .cpp and .m4 files in the .dll that are needed to create the PHP extension?

+6
source share
1 answer

Take a look at this: Getting started with the PHP extension

Typically, you need a C compiler (with or without an IDE), I recommend MS Visual C ++ Express. Then follow this guide: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/

+2
source

Source: https://habr.com/ru/post/908912/


All Articles