You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,12 +260,18 @@ Next, make sure you have the required Visual Studio version installed to build t
260
260
If the required Visual Studio version is not installed, for the first time you try to build PHP, the module will try to install the required Visual Studio components automatically.
261
261
262
262
Then, you can build PHP by using the `Invoke-PhpBuild` command.
263
-
- To build a specific version, you can use the `Version` input. It supports values in major.minor.patch format, e.g., 7.4.25, 8.0.12, etc., or `master` for the master branch of `php-src`.
263
+
- To build a specific PHP version, you can use the `PhpVersion` input. It supports values in major.minor.patch format, e.g., 7.4.25, 8.0.12, etc., or `master` for the master branch of `php-src`.
264
264
- To build a 32-bit or a 64-bit version, you can use the `Arch` input. It supports values `x64` and `x86`.
265
265
- To build a thread-safe or non-thread-safe version, you can use the `Ts` input. It supports values `ts` and `nts`.
To build PHP from a local source, run `Invoke-PhpBuild` from the source directory and omit `PhpVersion` input.
272
+
273
+
```powershell
274
+
Invoke-PhpBuild -Arch x64 -Ts nts
269
275
```
270
276
271
277
It should produce the PGO optimized builds for the input PHP version and configuration in a directory named `artifacts` in the current directory.
@@ -292,7 +298,7 @@ Next, make sure you have the required Visual Studio version installed to build t
292
298
If the required Visual Studio version is not installed, for the first time you try to build the PHP extension, the module will try to install the required Visual Studio components automatically.
293
299
294
300
Then, you can build the PHP extension by using the `Invoke-PhpBuildExtension` command.
295
-
- To build a php extension, you can use the `ExtensionUrl` input. It supports a git repository URL as value.
301
+
- To build a php extension from a git repository, you can use the `ExtensionUrl` input. It supports a git repository URL as value.
296
302
- To build a specific version of the extension, you can use the `ExtensionRef` input. It supports a git reference, e.g., a tag or a branch as value.
297
303
- To build the extension for a specific PHP version, you can use the `PhpVersion` input. It supports values in major.minor format, e.g., 7.4, 8.0, etc.
298
304
- To build the extension for a 32-bit or a 64-bit PHP version, you can use the `Arch` input. It supports values `x64` and `x86`.
To build an extension from a local source, run `Invoke-PhpBuildExtension` from the extension’s source directory and omit `ExtensionUrl` and `ExtensionRef` inputs.
0 commit comments