diff options
author | Xinchen Hui <laruence@gmail.com> | 2013-12-15 16:55:29 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2013-12-15 16:55:29 +0800 |
commit | 5eb8d9d70009c0bf9bfbbf511f2713e64dc8ee83 (patch) | |
tree | 2480a26e79d85b4b7f2eacb5a2187eb13f029094 /ext/standard/crypt.c | |
parent | 10964b78548a5878254f5aa75f4cfdcedb0543bc (diff) | |
parent | 904721189ff949c67795ec418f04b67951cbd57b (diff) | |
download | php-git-5eb8d9d70009c0bf9bfbbf511f2713e64dc8ee83.tar.gz |
Merge branch 'PHP-5.6' of https://git.php.net/push/php-src into PHP-5.6
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 113a5bd0f5..354c263afb 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -272,6 +272,8 @@ PHP_FUNCTION(crypt) if (salt_in) { memcpy(salt, salt_in, MIN(PHP_MAX_SALT_LEN, salt_in_len)); + } else { + php_error_docref(NULL TSRMLS_CC, E_NOTICE, "No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash."); } /* The automatic salt generation covers standard DES, md5-crypt and Blowfish (simple) */ |