diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-23 04:42:27 -0300 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-02-23 11:06:20 +0100 |
commit | 1314f0fb3a9ff25b9afe68845012c1d0acbec262 (patch) | |
tree | 85f4d3abdfe8c3da39b85ccf47ae25075d2987d3 /ext/standard/streamsfuncs.c | |
parent | bff179888f6d247c3584150f0c729634b95c745b (diff) | |
download | php-git-1314f0fb3a9ff25b9afe68845012c1d0acbec262.tar.gz |
Use int instead of long in protos
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r-- | ext/standard/streamsfuncs.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 3f03bfc7c5..fa82e74874 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -88,7 +88,7 @@ PHP_FUNCTION(stream_socket_pair) /* }}} */ #endif -/* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]]) +/* {{{ proto resource stream_socket_client(string remoteaddress [, int &errcode [, string &errstring [, double timeout [, int flags [, resource context]]]]]) Open a client connection to a remote address */ PHP_FUNCTION(stream_socket_client) { @@ -181,7 +181,7 @@ PHP_FUNCTION(stream_socket_client) } /* }}} */ -/* {{{ proto resource stream_socket_server(string localaddress [, long &errcode [, string &errstring [, long flags [, resource context]]]]) +/* {{{ proto resource stream_socket_server(string localaddress [, int &errcode [, string &errstring [, int flags [, resource context]]]]) Create a server socket bound to localaddress */ PHP_FUNCTION(stream_socket_server) { @@ -339,7 +339,7 @@ PHP_FUNCTION(stream_socket_get_name) } /* }}} */ -/* {{{ proto long stream_socket_sendto(resouce stream, string data [, long flags [, string target_addr]]) +/* {{{ proto int stream_socket_sendto(resouce stream, string data [, int flags [, string target_addr]]) Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format */ PHP_FUNCTION(stream_socket_sendto) { @@ -372,7 +372,7 @@ PHP_FUNCTION(stream_socket_sendto) } /* }}} */ -/* {{{ proto string stream_socket_recvfrom(resource stream, long amount [, long flags [, string &remote_addr]]) +/* {{{ proto string stream_socket_recvfrom(resource stream, int amount [, int flags [, string &remote_addr]]) Receives data from a socket stream */ PHP_FUNCTION(stream_socket_recvfrom) { @@ -424,7 +424,7 @@ PHP_FUNCTION(stream_socket_recvfrom) } /* }}} */ -/* {{{ proto string stream_get_contents(resource source [, long maxlen [, long offset]]) +/* {{{ proto string stream_get_contents(resource source [, int maxlen [, int offset]]) Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string. */ PHP_FUNCTION(stream_get_contents) { @@ -475,7 +475,7 @@ PHP_FUNCTION(stream_get_contents) } /* }}} */ -/* {{{ proto long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]]) +/* {{{ proto int stream_copy_to_stream(resource source, resource dest [, int maxlen [, int pos]]) Reads up to maxlen bytes from source stream and writes them to dest stream. */ PHP_FUNCTION(stream_copy_to_stream) { @@ -1762,4 +1762,3 @@ PHP_FUNCTION(stream_socket_shutdown) * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */ - |