sesser          Fri Oct  4 18:20:10 2002 EDT

  Modified files:              
    /php4/ext/ftp       ftp.c 
  Log:
  some FTP servers return 32bit port numbers.
  
  
  
Index: php4/ext/ftp/ftp.c
diff -u php4/ext/ftp/ftp.c:1.66 php4/ext/ftp/ftp.c:1.67
--- php4/ext/ftp/ftp.c:1.66     Thu Oct  3 08:16:44 2002
+++ php4/ext/ftp/ftp.c  Fri Oct  4 18:20:08 2002
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: ftp.c,v 1.66 2002/10/03 12:16:44 sesser Exp $ */
+/* $Id: ftp.c,v 1.67 2002/10/04 22:20:08 sesser Exp $ */
 
 #include "php.h"
 
@@ -602,7 +602,7 @@
                                        n++;
                        }
 
-                       sin6->sin6_port = htons((unsigned short) strtol(ptr, &endptr, 
10));
+                       sin6->sin6_port = htons((unsigned short) strtoul(ptr, &endptr, 
+10));
                        if (ptr == endptr || *endptr != delimiter)
                                return 0;
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to