nxt_php_sapi.c (1519:8277976f9749) nxt_php_sapi.c (1525:dc00c21f5bb4)
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"

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

397 nxt_conf_value_t *value;
398
399 static nxt_str_t root_str = nxt_string("root");
400 static nxt_str_t script_str = nxt_string("script");
401 static nxt_str_t index_str = nxt_string("index");
402
403 value = nxt_conf_get_object_member(conf, &root_str, NULL);
404
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"

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

397 nxt_conf_value_t *value;
398
399 static nxt_str_t root_str = nxt_string("root");
400 static nxt_str_t script_str = nxt_string("script");
401 static nxt_str_t index_str = nxt_string("index");
402
403 value = nxt_conf_get_object_member(conf, &root_str, NULL);
404
405 if (value == NULL) {
406 nxt_alert(task, "no php root specified");
407 return NXT_ERROR;
408 }
409
410 nxt_conf_get_string(value, &str);
411
412 tmp = nxt_malloc(str.length + 1);
413 if (nxt_slow_path(tmp == NULL)) {
414 return NXT_ERROR;
415 }
416
417 p = tmp;

--- 851 unchanged lines hidden ---
405 nxt_conf_get_string(value, &str);
406
407 tmp = nxt_malloc(str.length + 1);
408 if (nxt_slow_path(tmp == NULL)) {
409 return NXT_ERROR;
410 }
411
412 p = tmp;

--- 851 unchanged lines hidden ---