diff --git a/README.md b/README.md index 9c5a8ca..6cf06bd 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,15 @@ $ make $ make install ``` +### On Windows +Extract contents of one of the above mentioned directories to `[php-src]/../pecl/php-meminfo` + +```bash +$ buildconf +$ configure --enable-meminfo +$ nmake +``` + ## Enabling the extension Add the following line to your `php.ini`: diff --git a/extension/php5/config.w32 b/extension/php5/config.w32 new file mode 100644 index 0000000..2dc7bf9 --- /dev/null +++ b/extension/php5/config.w32 @@ -0,0 +1,6 @@ +ARG_ENABLE("meminfo", "Enable Meminfo support", "no"); + +if (PHP_MEMINFO = "yes") { + AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]'); + EXTENSION("meminfo", "meminfo.c"); +} diff --git a/extension/php7/config.w32 b/extension/php7/config.w32 new file mode 100644 index 0000000..2dc7bf9 --- /dev/null +++ b/extension/php7/config.w32 @@ -0,0 +1,6 @@ +ARG_ENABLE("meminfo", "Enable Meminfo support", "no"); + +if (PHP_MEMINFO = "yes") { + AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]'); + EXTENSION("meminfo", "meminfo.c"); +}