diff options
Diffstat (limited to 'ext/standard/password.c')
-rw-r--r-- | ext/standard/password.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/standard/password.c b/ext/standard/password.c index a46f4889e5..d01ddb0563 100644 --- a/ext/standard/password.c +++ b/ext/standard/password.c @@ -21,7 +21,6 @@ #include <stdlib.h> #include "php.h" -#if HAVE_CRYPT #include "fcntl.h" #include "php_password.h" @@ -195,7 +194,7 @@ PHP_FUNCTION(password_needs_rehash) algo = php_password_determine_algo(hash, (size_t) hash_len); - if (algo != new_algo) { + if ((zend_long)algo != new_algo) { RETURN_TRUE; } @@ -225,8 +224,8 @@ PHP_FUNCTION(password_needs_rehash) Verify a hash created using crypt() or password_hash() */ PHP_FUNCTION(password_verify) { - int status = 0, i; - size_t password_len, hash_len; + int status = 0; + size_t i, password_len, hash_len; char *password, *hash; zend_string *ret; @@ -384,7 +383,6 @@ PHP_FUNCTION(password_hash) } /* }}} */ -#endif /* HAVE_CRYPT */ /* * Local variables: * tab-width: 4 |