From: Ilia Alshanetsky Date: Fri, 19 Dec 2003 13:50:01 +0000 (+0000) Subject: MFH: Check correction X-Git-Tag: php-4.3.5RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6aeafbd6115118787626545ac05043b900aa3abf;p=php MFH: Check correction --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index be57962684..f22ae272dd 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1237,7 +1237,7 @@ PHP_FUNCTION(ip2long) convert_to_string_ex(str); - if (Z_STRVAL_PP(str) == "" || (ip = inet_addr(Z_STRVAL_PP(str))) == INADDR_NONE) { + if (Z_STRLEN_PP(str) == 0 || (ip = inet_addr(Z_STRVAL_PP(str))) == INADDR_NONE) { RETURN_LONG(-1); }