Skip to content

Commit 8c73d5d

Browse files
committed
Demonstrate how to build and test DLL in contributing docs
1 parent e698e81 commit 8c73d5d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,19 @@ bin\phpsdk_setvars.bat
120120
cd C:\php-sdk\phpdev\vc11\x86\php-5.6.12-src
121121
nmake clean
122122
buildconf --force
123-
configure --disable-all --with-openssl --enable-cli --enable-json --enable-mongodb
123+
configure --disable-all --with-openssl --enable-cli --enable-json --enable-mongodb=shared
124124
nmake
125125
```
126126

127-
If the extension was successfully compiled, "mongodb" should be reported by
128-
`Release_TS\php.exe -m`.
127+
If the extension was successfully compiled, a `php_mongodb.dll` file should be
128+
generated in the build directory (e.g. `Release_TS`). You should then verify
129+
that the extension loads and executes properly:
130+
131+
```
132+
cd Release_TS
133+
php.exe -d extension=./php_mongodb.dll -m
134+
php.exe -d extension=./php_mongodb.dll -r "var_dump(new MongoDB\Driver\Manager);"
135+
```
129136

130137
See the [internals wiki](https://wiki.php.net/internals/windows/stepbystepbuild)
131138
for more information.

0 commit comments

Comments
 (0)