Skip to content

Commit

Permalink
keep code to be compatible with PHP4
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wang committed Nov 16, 2011
1 parent dfd357d commit 25ccd72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sapi/litespeed/lsapi_main.c
Expand Up @@ -986,11 +986,17 @@ int main( int argc, char * argv[] )

/* LiteSpeed PHP module starts here */

#if PHP_MAJOR_VERSION > 4

/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO(arginfo_litespeed__void, 0)
ZEND_END_ARG_INFO()
/* }}} */

#else
#define arginfo_litespeed__void NULL
#endif

PHP_FUNCTION(litespeed_request_headers);
PHP_FUNCTION(litespeed_response_headers);

Expand Down

0 comments on commit 25ccd72

Please sign in to comment.