From db86d54446c461eab518225645889abc509db034 Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Thu, 5 Jul 2012 17:31:40 -0400 Subject: [PATCH] Fix issue with int vs long parameter --- ext/standard/password.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/standard/password.c b/ext/standard/password.c index 9bfb023584..6da656c5af 100644 --- a/ext/standard/password.c +++ b/ext/standard/password.c @@ -266,7 +266,8 @@ Hash a password */ PHP_FUNCTION(password_hash) { char *hash_format, *hash, *salt, *password, *result; - int algo = 0, salt_len = 0, required_salt_len = 0, hash_format_len, password_len; + long algo = 0; + int salt_len = 0, required_salt_len = 0, hash_format_len, password_len; HashTable *options = 0; zval **option_buffer; @@ -297,7 +298,7 @@ PHP_FUNCTION(password_hash) } break; default: - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown password hashing algorithm: %d", algo); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown password hashing algorithm: %ld", algo); RETURN_NULL(); } -- 2.40.0