Skip to content

Commit e7437e3

Browse files
committed
Update docs
1 parent abc2940 commit e7437e3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docs/cmake/cmake.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,20 @@ A list of PHP CMake modules:
379379
Global property with a list of all enabled PHP extension for the current
380380
configuration.
381381

382+
* `PHP_SAPI_CLI`
383+
384+
Target property that designates PHP SAPI as CLI-based. These SAPIs can utilize
385+
CLI-based PHP extensions (for example, `pcntl`) and include
386+
`main/internal_functions_cli.c` object instead of the
387+
`main/internal_functions.c`.
388+
389+
For example, to mark `cli` PHP SAPI, set `PHP_SAPI_CLI` custom target property
390+
to *truthy* value:
391+
392+
```cmake
393+
set_target_properties(php_cli PROPERTIES PHP_SAPI_CLI TRUE)
394+
```
395+
382396
* `PHP_SAPIS`
383397

384398
Global property with a list of all enabled PHP SAPIs for the current

docs/cmake/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ A list of Autoconf `configure` command-line configuration options, Windows
10811081
</tr>
10821082
<tr>
10831083
<td>&emsp;N/A</td>
1084-
<td>--enable-com-dotnet=shared</td>
1084+
<td>--enable-com-dotnet=shared (default PHP &gt;= 8.5)</td>
10851085
<td>EXT_COM_DOTNET_SHARED=ON</td>
10861086
<td>Windows only</td>
10871087
</tr>

0 commit comments

Comments
 (0)