diff options
author | George Wang <gwang@php.net> | 2011-12-31 18:15:06 +0000 |
---|---|---|
committer | George Wang <gwang@php.net> | 2011-12-31 18:15:06 +0000 |
commit | 3c1df3349af1ae2ce44685e93dff30502c509583 (patch) | |
tree | 30654aa2794a736b8313a16fbd1bb2144ca3945f | |
parent | 596b37daf13ecf462cf30d76cbe86da25ceb292a (diff) | |
download | php-git-3c1df3349af1ae2ce44685e93dff30502c509583.tar.gz |
fixed a crash in cli mode when apache_request_headers() is called
-rw-r--r-- | sapi/litespeed/lsapi_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index c9cbc3d958..a197225b4b 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -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 ); } /* }}} */ |