diff options
| -rw-r--r-- | ext/hash/hash.c | 7 | ||||
| -rw-r--r-- | ext/mysql/php_mysql.c | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 95d1d659dd..5a4529d0f5 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -603,9 +603,8 @@ PHP_FUNCTION(hash_pbkdf2) zend_string *returnval; char *algo, *salt, *pass = NULL; unsigned char *computed_salt, *digest, *temp, *result, *K1, *K2 = NULL; - zend_long loops, i, j, iterations, digest_length = 0; - size_t algo_len, pass_len, length = 0; - size_t salt_len = 0; + zend_long loops, i, j, iterations, digest_length = 0, length = 0; + size_t algo_len, pass_len, salt_len = 0; zend_bool raw_output = 0; const php_hash_ops *ops; void *context; @@ -631,7 +630,7 @@ PHP_FUNCTION(hash_pbkdf2) } if (salt_len > INT_MAX - 4) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Supplied salt is too long, max of INT_MAX - 4 bytes: %d supplied", salt_len); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Supplied salt is too long, max of INT_MAX - 4 bytes: %zd supplied", salt_len); RETURN_FALSE; } diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 4b316b4526..424f923d78 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1372,7 +1372,7 @@ PHP_FUNCTION(mysql_client_encoding) PHP_FUNCTION(mysql_set_charset) { char *csname; - int csname_len; + size_t csname_len; php_mysql_conn *mysql; zval *mysql_link = NULL; |
