perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@hyperreal.org
Subject cvs commit: modperl/src/modules/perl perl_config.c
Date Tue, 20 Apr 1999 15:11:12 GMT
dougm       99/04/20 08:11:12

  Modified:    .        Changes
               src/modules/perl perl_config.c
  Log:
  fix bug where top-level PerlSetEnv's would be lost after 1st request
  
  Revision  Changes    Path
  1.284     +2 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.283
  retrieving revision 1.284
  diff -u -r1.283 -r1.284
  --- Changes	1999/04/19 18:53:33	1.283
  +++ Changes	1999/04/20 15:11:10	1.284
  @@ -8,6 +8,8 @@
   
   =item 1.19_01-dev
   
  +fix bug where top-level PerlSetEnv's would be lost after 1st request
  +
   fix bug in Apache::ModuleConfig->get [Dave Hayes <dave@jetcafe.org>]
   
   fix rwrite error message [Eric Cholet <cholet@logilune.com>]
  
  
  
  1.69      +3 -6      modperl/src/modules/perl/perl_config.c
  
  Index: perl_config.c
  ===================================================================
  RCS file: /home/cvs/modperl/src/modules/perl/perl_config.c,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- perl_config.c	1999/02/16 19:09:59	1.68
  +++ perl_config.c	1999/04/20 15:11:11	1.69
  @@ -663,15 +663,12 @@
       MP_HASENV_on(rec);
       MP_TRACE_d(fprintf(stderr, "perl_cmd_setenv: '%s' = '%s'\n", key, val));
       if(cmd->path == NULL) {
  +	dPSRV(cmd->server); 
   	if(PERL_RUNNING()) { 
   	    mp_SetEnv(key,val);
   	} 
  -	else { 
  -           char **new; 
  -           dPSRV(cmd->server); 
  -           new = (char **)push_array(cls->PerlPassEnv); 
  -           *new = pstrcat(cmd->pool, key, ":", val, NULL); 
  -	} 
  +	*(char **)push_array(cls->PerlPassEnv) = 
  +	    pstrcat(cmd->pool, key, ":", val, NULL); 
       }
       return NULL;
   }
  
  
  

Mime
View raw message