summaryrefslogtreecommitdiff
path: root/ext/standard/http_fopen_wrapper.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-03-02 13:12:45 +0000
committerDmitry Stogov <dmitry@php.net>2006-03-02 13:12:45 +0000
commitc366cc6d1ac32ef94eeee12e641b2ea24ebceb12 (patch)
tree934afd6672482d14bcbf17f3312aa68b83ed7d20 /ext/standard/http_fopen_wrapper.c
parent8f567a5abb99b86886ede2d886507e2c22a2d67e (diff)
downloadphp-git-c366cc6d1ac32ef94eeee12e641b2ea24ebceb12.tar.gz
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
-rw-r--r--ext/standard/http_fopen_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index 8cd1517bc6..bf5f9e89cb 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -378,7 +378,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
strcat(scratch, ":");
strcat(scratch, resource->pass);
- tmp = php_base64_encode((unsigned char*)scratch, strlen(scratch), NULL);
+ tmp = (char*)php_base64_encode((unsigned char*)scratch, strlen(scratch), NULL);
if (snprintf(scratch, scratch_len, "Authorization: Basic %s\r\n", tmp) > 0) {
php_stream_write(stream, scratch, strlen(scratch));
@@ -627,7 +627,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
unsigned char *s, *e; \
int l; \
l = php_url_decode(val, strlen(val)); \
- s = val; e = s + l; \
+ s = (unsigned char*)val; e = s + l; \
while (s < e) { \
if (iscntrl(*s)) { \
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect url! %s", new_path); \