Date: 05/31/98
- Next message: David Norris: "RE: [PHP-DEV] Bug #413: Premature end of headers on Apache 1.3b7"
- Previous message: shane: "[PHP-DEV] CVS update: php31/main"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sunday May 31, 1998 @ 19:21
Author: shane
Update of /repository/php31/sapi
In directory asf:/tmp/cvs-serv1571/sapi
Modified Files:
cgi_sapi.c
Log Message:
fix cgi file opening
Index: php31/sapi/cgi_sapi.c
diff -c php31/sapi/cgi_sapi.c:1.8 php31/sapi/cgi_sapi.c:1.9
*** php31/sapi/cgi_sapi.c:1.8 Sun May 31 18:23:02 1998
--- php31/sapi/cgi_sapi.c Sun May 31 19:21:17 1998
***************
*** 218,224 ****
--- 218,226 ----
if(sapi_info->argv0)free(sapi_info->argv0);
if(sapi_info->script_filename)free(sapi_info->script_filename);
if(sapi_info->rqst_filename)free(sapi_info->rqst_filename);
+ #ifndef THREAD_SAFE /*it gets freed from dllmain() if thread safe*/
free(sapi_info);
+ #endif
}
/* php cgi functions */
***************
*** 373,379 ****
}
if (sapi_info->rqst_filename == NULL && !sapi_info->cgi && argc > arg) {
! sapi_info->rqst_filename = strdup(argv[arg]);
} else if (sapi_info->cgi) {
sapi_info->rqst_filename=NULL;
}
--- 375,381 ----
}
if (sapi_info->rqst_filename == NULL && !sapi_info->cgi && argc > arg) {
! sapi_info->argv0 = strdup(argv[arg]);
} else if (sapi_info->cgi) {
sapi_info->rqst_filename=NULL;
}
- Next message: David Norris: "RE: [PHP-DEV] Bug #413: Premature end of headers on Apache 1.3b7"
- Previous message: shane: "[PHP-DEV] CVS update: php31/main"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

