summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_php_sapi.c
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-25 13:28:14 +0100
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-25 13:28:14 +0100
commit30a242aa3cbfc3c3368ba0b6d2b4e579b31dc553 (patch)
tree10702c1803fec716c6e98c935781ea88bd9e7a1f /src/nxt_php_sapi.c
parentdcfa92c161296af903fc1ebd4ddb98d1c38c59e7 (diff)
downloadunit-30a242aa3cbfc3c3368ba0b6d2b4e579b31dc553.tar.gz
unit-30a242aa3cbfc3c3368ba0b6d2b4e579b31dc553.tar.bz2
PHP: added bind mounts for extensions directory.
Diffstat (limited to 'src/nxt_php_sapi.c')
-rw-r--r--src/nxt_php_sapi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index bc8341f4..d7e5b476 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -14,6 +14,8 @@
#include <nxt_unit.h>
#include <nxt_unit_request.h>
+#include NXT_PHP_MOUNTS_H
+
#if PHP_VERSION_ID >= 50400
#define NXT_HAVE_PHP_IGNORE_CWD 1
@@ -250,8 +252,8 @@ NXT_EXPORT nxt_app_module_t nxt_app_module = {
compat,
nxt_string("php"),
PHP_VERSION,
- NULL,
- 0,
+ nxt_php_mounts,
+ nxt_nitems(nxt_php_mounts),
NULL,
nxt_php_start,
};