diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-19 13:49:59 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-19 13:49:59 +0000 |
| commit | c6b04cb48afd3e476d767492102f0060d2a5a888 (patch) | |
| tree | bac3cd980cb6c2662162b16e839922cfe1a6a1bd | |
| parent | fbfde0fc0eae67e382f0d7b05f6da5b209920153 (diff) | |
| download | php-git-c6b04cb48afd3e476d767492102f0060d2a5a888.tar.gz | |
Check correction (Thanks Andi).
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7e5e89c328..96a5e74ab4 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1189,7 +1189,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); } |
