comparison src/http/modules/perl/ngx_http_perl_module.c @ 639:715d24327080 release-0.3.41

nginx-0.3.41-RELEASE import *) Feature: the -v switch. *) Bugfix: the segmentation fault may occurred if the SSI page has remote subrequests. *) Bugfix: in FastCGI handling. *) Bugfix: if the perl modules path was not set using --with-perl_modules_path=PATH or the "perl_modules", then the segmentation fault was occurred.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Apr 2006 12:06:44 +0000
parents e60fe4cf1d4e
children 1e720b0be7ec
comparison
equal deleted inserted replaced
638:76bf795b5a02 639:715d24327080
481 if (pmcf->modules.data == NULL) { 481 if (pmcf->modules.data == NULL) {
482 pmcf->modules.data = NGX_PERL_MODULES; 482 pmcf->modules.data = NGX_PERL_MODULES;
483 } 483 }
484 #endif 484 #endif
485 485
486 if (ngx_conf_full_name(cf->cycle, &pmcf->modules) != NGX_OK) { 486 if (pmcf->modules.data) {
487 return NGX_CONF_ERROR; 487 if (ngx_conf_full_name(cf->cycle, &pmcf->modules) != NGX_OK) {
488 return NGX_CONF_ERROR;
489 }
488 } 490 }
489 491
490 PERL_SYS_INIT(&ngx_argc, &ngx_argv); 492 PERL_SYS_INIT(&ngx_argc, &ngx_argv);
491 493
492 pmcf->perl = ngx_http_perl_create_interpreter(pmcf, cf->log); 494 pmcf->perl = ngx_http_perl_create_interpreter(pmcf, cf->log);