diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-19 13:50:01 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-19 13:50:01 +0000 |
| commit | 6aeafbd6115118787626545ac05043b900aa3abf (patch) | |
| tree | 3ae85dc569f7b2cb3759a861fd3f7e022c155c39 | |
| parent | 4f3b9cd6917f8a306ff3820a344f78236cdf73b7 (diff) | |
| download | php-git-6aeafbd6115118787626545ac05043b900aa3abf.tar.gz | |
MFH: Check correction
| -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 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); } |
