diff options
author | Anthony Ferrara <ircmaxell@gmail.com> | 2015-04-09 15:51:04 -0400 |
---|---|---|
committer | Anthony Ferrara <ircmaxell@gmail.com> | 2015-04-09 15:51:04 -0400 |
commit | 94e222c14d61d8206ed1f4a9695ffc5b169bd4f4 (patch) | |
tree | a7b82149fcbb477daf9b321b27aa9013615525f6 /ext/standard/password.c | |
parent | 156ac232cb24bf7e1afcc0ba8287cc8e1906aa88 (diff) | |
download | php-git-94e222c14d61d8206ed1f4a9695ffc5b169bd4f4.tar.gz |
Deprecate password_hash salt option
Diffstat (limited to 'ext/standard/password.c')
-rw-r--r-- | ext/standard/password.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/password.c b/ext/standard/password.c index 96fb8a5c92..656dc50cbb 100644 --- a/ext/standard/password.c +++ b/ext/standard/password.c @@ -346,6 +346,9 @@ PHP_FUNCTION(password_hash) if (options && (option_buffer = zend_symtable_str_find(options, "salt", sizeof("salt")-1)) != NULL) { char *buffer; size_t buffer_len = 0; + + php_error_docref(NULL, E_DEPRECATED, "Use of the 'salt' option to password_hash is deprecated"); + switch (Z_TYPE_P(option_buffer)) { case IS_STRING: buffer = estrndup(Z_STRVAL_P(option_buffer), Z_STRLEN_P(option_buffer)); |