summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_php_sapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index f5f115f5..7a5e0a3b 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -668,10 +668,10 @@ nxt_php_request_handler(nxt_unit_request_info_t *req)
SG(request_info).path_translated = NULL;
+ nxt_memzero(&file_handle, sizeof(file_handle));
+
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.filename = (char *) ctx->script_filename.start;
- file_handle.free_filename = 0;
- file_handle.opened_path = NULL;
nxt_unit_req_debug(req, "handle.filename = '%s'",
ctx->script_filename.start);