]> granicus.if.org Git - php/commitdiff
Fixed 64-bit support
authorDmitry Stogov <dmitry@php.net>
Mon, 9 Apr 2007 15:39:16 +0000 (15:39 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 9 Apr 2007 15:39:16 +0000 (15:39 +0000)
ext/standard/streamsfuncs.c
main/streams/plain_wrapper.c

index 396834c98a0cf2745a8133e9bacb611e52e96e87..85c6f35b35824d2c1e6ad878432aa1ec6228d16f 100644 (file)
@@ -758,7 +758,7 @@ PHP_FUNCTION(stream_select)
        struct timeval  tv;
        struct timeval *tv_p = NULL;
        fd_set                  rfds, wfds, efds;
-       int                             max_fd = 0;
+       php_socket_t    max_fd = 0;
        int                             retval, sets = 0;
        long                    usec = 0;
        int                             set_count, max_set_count = 0;
index 40fe2a9a77e58d614e1e838a0291c78fcc95d2a1..d3524a7d39894ebaf7560befe26323b663f905c6 100644 (file)
@@ -1266,7 +1266,7 @@ not_relative_path:
        
 #ifdef PHP_WIN32
        if (IS_SLASH(filename[0])) {
-               int cwd_len;
+               size_t cwd_len;
                char *cwd;
                cwd = virtual_getcwd_ex(&cwd_len TSRMLS_CC);
                /* getcwd() will return always return [DRIVE_LETTER]:/) on windows. */