summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-06-16 23:57:25 +0000
committerArd Biesheuvel <abies@php.net>2004-06-16 23:57:25 +0000
commit5232a5afea51e0cf996c67f6359ac3f810d4a7df (patch)
treedf101b82806cb54a39ca819832016b42c5e98b5d /ext/standard/streamsfuncs.c
parent6527a454c67c259c0f21b82cc43f5fa8d957ce2a (diff)
downloadphp-git-5232a5afea51e0cf996c67f6359ac3f810d4a7df.tar.gz
64-bit bugsquash party
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 858638804b..b73fabe8d8 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -46,7 +46,7 @@ static php_stream_context *decode_context_param(zval *contextresource TSRMLS_DC)
PHP_FUNCTION(stream_socket_client)
{
char *host;
- long host_len;
+ int host_len;
zval *zerrno = NULL, *zerrstr = NULL, *zcontext = NULL;
double timeout = FG(default_socket_timeout);
unsigned long conv;
@@ -133,7 +133,7 @@ PHP_FUNCTION(stream_socket_client)
PHP_FUNCTION(stream_socket_server)
{
char *host;
- long host_len;
+ int host_len;
zval *zerrno = NULL, *zerrstr = NULL, *zcontext = NULL;
php_stream *stream = NULL;
int err = 0;
@@ -274,7 +274,7 @@ PHP_FUNCTION(stream_socket_sendto)
zval *zstream;
long flags = 0;
char *data, *target_addr = NULL;
- long datalen, target_addr_len = 0;
+ int datalen, target_addr_len = 0;
php_sockaddr_storage sa;
socklen_t sl = 0;