? basic_functions.c.my ? file.c.my ? file.h.my ? fread.diff ? ip2long.diff Index: basic_functions.c =================================================================== RCS file: /repository/php-src/ext/standard/basic_functions.c,v retrieving revision 1.684 diff -u -r1.684 basic_functions.c --- basic_functions.c 19 Aug 2004 13:59:29 -0000 1.684 +++ basic_functions.c 19 Aug 2004 14:40:27 -0000 @@ -1365,14 +1365,14 @@ convert_to_string_ex(str); - /* the only special case when we should return -1 ourselves, - * because inet_addr() considers it wrong. - */ - if (!strcasecmp(Z_STRVAL_PP(str), "255.255.255.255")) { - RETURN_LONG(-1); - } - if (Z_STRLEN_PP(str) == 0 || (ip = inet_addr(Z_STRVAL_PP(str))) == INADDR_NONE) { + /* the only special case when we should return -1 ourselves, + * because inet_addr() considers it wrong. + */ + if (!memcmp(Z_STRVAL_PP(str), "255.255.255.255", Z_STRLEN_PP(str))) { + RETURN_LONG(-1); + } + RETURN_FALSE; }