fixed a crash in cli mode when apache_request_headers() is called

This commit is contained in:
George Wang 2011-12-31 18:15:22 +00:00
parent ecfb3af78f
commit f9d84f4f6b

View file

@ -1055,7 +1055,8 @@ PHP_FUNCTION(litespeed_request_headers)
} }
array_init(return_value); array_init(return_value);
LSAPI_ForeachOrgHeader( add_associate_array, return_value ); if ( lsapi_mode )
LSAPI_ForeachOrgHeader( add_associate_array, return_value );
} }
/* }}} */ /* }}} */