Skip to content

Commit

Permalink
fixed a crash in cli mode when apache_request_headers() is called
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wang committed Dec 31, 2011
1 parent ecfb3af commit f9d84f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sapi/litespeed/lsapi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ PHP_FUNCTION(litespeed_request_headers)
}
array_init(return_value);

LSAPI_ForeachOrgHeader( add_associate_array, return_value );
if ( lsapi_mode )
LSAPI_ForeachOrgHeader( add_associate_array, return_value );

}
/* }}} */
Expand Down

0 comments on commit f9d84f4

Please sign in to comment.