Permalink
Browse files

Fix variable declaration compilation error on Windows (#5346)

  • Loading branch information...
1 parent bcf7e7e commit 2f240de9ac97c1e7cc3253541b590a45271a334d @AlexanderGabriel AlexanderGabriel committed with tbonfort Nov 7, 2016
Showing with 2 additions and 3 deletions.
  1. +2 −3 mapscript/php/owsrequest.c
@@ -195,16 +195,15 @@ PHP_METHOD(OWSRequestObj, loadParams)
#if PHP_VERSION_ID >= 50600
php_stream *s = php_stream_temp_new();
php_stream *input = php_stream_open_wrapper("php://input", "r", 0, NULL);
+ char *raw_post_data = NULL;
+ long raw_post_data_length = 0;
/* php://input does not support stat */
php_stream_copy_to_stream_ex(input, s, -1, NULL);
php_stream_close(input);
php_stream_rewind(s);
- char *raw_post_data = NULL;
- long raw_post_data_length = 0;
-
raw_post_data_length = php_stream_copy_to_mem(s, raw_post_data, -1, 0);
cgirequestObj_loadParams(php_owsrequest->cgirequest, owsrequest_getenv,

0 comments on commit 2f240de

Please sign in to comment.