summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-02-21 17:02:55 -0800
committerStanislav Malyshev <stas@php.net>2016-02-21 17:11:34 -0800
commitd25e67eee653c8ce8ce1a4459181e3b802eb915c (patch)
tree1e7bc6ef6366fb313d8b9b4edd75773afe90534c /main
parent0bd64b50b88d243cf337e0c5dbea20e4ba809117 (diff)
downloadphp-git-d25e67eee653c8ce8ce1a4459181e3b802eb915c.tar.gz
Fix bug #71629: sync php_url_decode definition
Diffstat (limited to 'main')
-rw-r--r--main/streams/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/memory.c b/main/streams/memory.c
index 09da047d86..56ffe344aa 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -22,7 +22,7 @@
#include "php.h"
#include "ext/standard/base64.h"
-PHPAPI int php_url_decode(char *str, int len);
+PHPAPI size_t php_url_decode(char *str, size_t len);
/* Memory streams use a dynamic memory buffer to emulate a stream.
* You can use php_stream_memory_open to create a readonly stream
@@ -730,7 +730,7 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
ilen = (int)ZSTR_LEN(base64_comma);
} else {
comma = estrndup(comma, dlen);
- dlen = php_url_decode(comma, (int)dlen);
+ dlen = php_url_decode(comma, dlen);
ilen = (int)dlen;
}