Skip to content

Commit

Permalink
Fix variable declaration compilation error on Windows (#5346)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderGabriel authored and tbonfort committed Dec 5, 2016
1 parent bcf7e7e commit 2f240de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mapscript/php/owsrequest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2f240de

Please sign in to comment.