@@ -1007,29 +1007,28 @@ SAPI_API zend_stat_t *sapi_get_stat(void)
1007
1007
1008
1008
SAPI_API char * sapi_getenv (const char * name , size_t name_len )
1009
1009
{
1010
- if (!strncasecmp (name , "HTTP_PROXY" , name_len )) {
1011
- /* Ugly fix for HTTP_PROXY issue, see bug #72573 */
1012
- return NULL ;
1013
- }
1014
- if (sapi_module .getenv ) {
1015
- char * value = NULL , * tmp = sapi_module .getenv (name , name_len );
1016
- if (tmp ) {
1017
- value = estrdup (tmp );
1010
+ var value = NULL ;
1011
+
1012
+ /* gate: see bug #72573 */
1013
+ if (strncasecmp (name , "HTTP_PROXY" , name_len )) {
1014
+ if (sapi_module .getenv ) {
1015
+ char * tmp = sapi_module .getenv (name , name_len );
1016
+
1017
+ if (tmp ) {
1018
+ value = estrdup (tmp );
1018
1019
#ifdef PHP_WIN32
1019
- if (strlen (sapi_module .name ) == sizeof ("cgi-fcgi" ) - 1 && !strcmp (sapi_module .name , "cgi-fcgi" )) {
1020
- /* XXX more modules to go, if needed. */
1021
- free (tmp );
1022
- }
1020
+ if (strlen (sapi_module .name ) == sizeof ("cgi-fcgi" ) - 1 && !strcmp (sapi_module .name , "cgi-fcgi" )) {
1021
+ /* XXX more modules to go, if needed. */
1022
+ free (tmp );
1023
+ }
1023
1024
#endif
1024
- } else {
1025
- return NULL ;
1026
- }
1027
- if (value && sapi_module .input_filter ) {
1028
- sapi_module .input_filter (PARSE_STRING , name , & value , strlen (value ), NULL );
1025
+ if (value && sapi_module .input_filter ) {
1026
+ sapi_module .input_filter (PARSE_STRING , name , & value , strlen (value ), NULL );
1027
+ }
1028
+ }
1029
1029
}
1030
- return value ;
1031
1030
}
1032
- return NULL ;
1031
+ return value ;
1033
1032
}
1034
1033
1035
1034
SAPI_API int sapi_get_fd (int * fd )
0 commit comments