nxt_php_sapi.c (1874:3d76ec426540) nxt_php_sapi.c (1980:43553aa72111)
1/*
2 * Copyright (C) Max Romanov
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include "php.h"
8#include "SAPI.h"

--- 471 unchanged lines hidden (view full) ---

480
481 } else {
482 ret = nxt_php_set_target(task, &nxt_php_targets[0], conf->self);
483 if (nxt_slow_path(ret != NXT_OK)) {
484 return NXT_ERROR;
485 }
486 }
487
1/*
2 * Copyright (C) Max Romanov
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include "php.h"
8#include "SAPI.h"

--- 471 unchanged lines hidden (view full) ---

480
481 } else {
482 ret = nxt_php_set_target(task, &nxt_php_targets[0], conf->self);
483 if (nxt_slow_path(ret != NXT_OK)) {
484 return NXT_ERROR;
485 }
486 }
487
488 ret = nxt_unit_default_init(task, &php_init);
488 ret = nxt_unit_default_init(task, &php_init, conf);
489 if (nxt_slow_path(ret != NXT_OK)) {
490 nxt_alert(task, "nxt_unit_default_init() failed");
491 return ret;
492 }
493
494 php_init.callbacks.request_handler = nxt_php_request_handler;
489 if (nxt_slow_path(ret != NXT_OK)) {
490 nxt_alert(task, "nxt_unit_default_init() failed");
491 return ret;
492 }
493
494 php_init.callbacks.request_handler = nxt_php_request_handler;
495 php_init.shm_limit = conf->shm_limit;
496
497 unit_ctx = nxt_unit_init(&php_init);
498 if (nxt_slow_path(unit_ctx == NULL)) {
499 return NXT_ERROR;
500 }
501
502 nxt_php_unit_ctx = unit_ctx;
503

--- 997 unchanged lines hidden ---
495
496 unit_ctx = nxt_unit_init(&php_init);
497 if (nxt_slow_path(unit_ctx == NULL)) {
498 return NXT_ERROR;
499 }
500
501 nxt_php_unit_ctx = unit_ctx;
502

--- 997 unchanged lines hidden ---