]> granicus.if.org Git - php/commitdiff
use php_socket_t instead of int
authorAnatol Belski <ab@php.net>
Thu, 9 Oct 2014 08:35:47 +0000 (10:35 +0200)
committerAnatol Belski <ab@php.net>
Fri, 10 Oct 2014 17:00:19 +0000 (19:00 +0200)
ext/standard/file.h
main/network.c

index fdace75d3b6394fd627a552d5edb0ba84faa6587..ec60b86e997ed8e66d03d1544d15910bbb613657 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef FILE_H
 #define FILE_H
 
+#include "php_network.h"
+
 PHP_MINIT_FUNCTION(file);
 PHP_MSHUTDOWN_FUNCTION(file);
 
@@ -73,7 +75,7 @@ PHP_FUNCTION(sys_get_temp_dir);
 PHP_MINIT_FUNCTION(user_streams);
 
 PHPAPI int php_le_stream_context(TSRMLS_D);
-PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC);
+PHPAPI int php_set_sock_blocking(php_socket_t socketd, int block TSRMLS_DC);
 PHPAPI int php_copy_file(const char *src, const char *dest TSRMLS_DC);
 PHPAPI int php_copy_file_ex(const char *src, const char *dest, int src_chk TSRMLS_DC);
 PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_chk, php_stream_context *ctx TSRMLS_DC);
index bb21f0ffe4e4e7a8432fdb712dbfb9b8baaeebd4..9fd12854930b5fd5a40cee6198f088ef0789df90 100644 (file)
@@ -1123,7 +1123,7 @@ PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short p
        return stream;
 }
 
-PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC)
+PHPAPI int php_set_sock_blocking(php_socket_t socketd, int block TSRMLS_DC)
 {
        int ret = SUCCESS;
        int flags;