Skip to content

Commit

Permalink
Add config for building on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
klandaika committed Dec 20, 2018
1 parent e961afa commit 32e5789
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
6 changes: 6 additions & 0 deletions extension/php5/config.w32
Original file line number Diff line number Diff line change
@@ -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");
}
6 changes: 6 additions & 0 deletions extension/php7/config.w32
Original file line number Diff line number Diff line change
@@ -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");
}

0 comments on commit 32e5789

Please sign in to comment.