Skip to content

Commit 71fffbd

Browse files
committed
Update docs
1 parent a4f9b16 commit 71fffbd

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

docs/configuration.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,6 @@ documentation.
165165

166166
## 3. PHP configuration
167167

168-
* `PHP_RE2C_CGOTO=OFF|ON`
169-
170-
Default: `OFF`
171-
172-
Enable the goto C statements when using re2c.
173-
174168
* `PHP_BUILD_ARCH`
175169

176170
Default: `${CMAKE_SYSTEM_PROCESSOR}`
@@ -189,14 +183,6 @@ documentation.
189183

190184
Build provider displayed in phpinfo.
191185

192-
* `SED_EXECUTABLE`
193-
194-
Default path to the sed on the host system.
195-
196-
Path to the sed, which can be manually overridden to the sed on the target
197-
system. This is only used in generated phpize (and php-config) scripts on *nix
198-
systems.
199-
200186
* `PHP_CCACHE=ON|OFF`
201187

202188
Default: `ON`
@@ -206,6 +192,27 @@ documentation.
206192
option or by setting environment variable `CCACHE_DISABLE=1`. A custom path to
207193
the `ccache` installation directory can be also set with the `Ccache_ROOT`.
208194

195+
* `PHP_INCLUDE_PREFIX`
196+
197+
Default: `php`
198+
199+
Relative directory inside the `CMAKE_INSTALL_INCLUDEDIR` to adjust installed
200+
headers location. For example, to specify PHP version: `php/8.4` or similar.
201+
202+
* `PHP_RE2C_CGOTO=OFF|ON`
203+
204+
Default: `OFF`
205+
206+
Enable the goto C statements when using re2c.
207+
208+
* `SED_EXECUTABLE`
209+
210+
Default path to the sed on the host system.
211+
212+
Path to the sed, which can be manually overridden to the sed on the target
213+
system. This is only used in generated phpize (and php-config) scripts on *nix
214+
systems.
215+
209216
## 4. Zend engine configuration
210217

211218
## 5. PHP SAPI modules configuration

docs/php-installation.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,21 @@ These variables are by default relative paths. When customized, they can be
222222
either relative or absolute. When changed to absolute values the installation
223223
prefix will not be taken into account.
224224

225+
> [!TIP]
226+
> To set the PHP include directory, there is also `PHP_INCLUDE_PREFIX` cache
227+
> variable available, that can adjust the path inside the
228+
> `CMAKE_INSTALL_INCLUDEDIR`.
229+
>
230+
> ```sh
231+
> <CMAKE_INSTALL_PREFIX> # /usr/local
232+
> └─ <CMAKE_INSTALL_INCLUDEDIR> # └─ include
233+
> └─ <PHP_INSTALL_PREFIX> # └─ php
234+
> ├─ ext # ├─ ext
235+
> ├─ main # ├─ main
236+
> ├─ sapi # ├─ sapi
237+
> ├─ TSRM # ├─ TSRM
238+
> └─ Zend # └─ Zend
239+
225240
Instead of setting the installation prefix at the configuration phase using
226241
`CMAKE_INSTALL_PREFIX` variable or `--install-prefix` option, there is
227242
also `installDir` field which can be set in the `CMakePresets.json` or

0 commit comments

Comments
 (0)