php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch password-as-path for *Encryption and hash functions Bug #76842

Patch version 2018-09-06 11:37 UTC

Return to Bug #76842 | Download this patch
Patch Revisions:

Developer: cmb@php.net

 ext/standard/password.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/standard/password.c b/ext/standard/password.c
index 5cf0d397f5..2cb4aeac46 100644
--- a/ext/standard/password.c
+++ b/ext/standard/password.c
@@ -317,7 +317,7 @@ PHP_FUNCTION(password_verify)
 	php_password_algo algo;
 
 	ZEND_PARSE_PARAMETERS_START(2, 2)
-		Z_PARAM_STR(password)
+		Z_PARAM_PATH_STR(password)
 		Z_PARAM_STR(hash)
 	ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
 
@@ -448,7 +448,7 @@ PHP_FUNCTION(password_hash)
 	HashTable *options = NULL;
 
 	ZEND_PARSE_PARAMETERS_START(2, 3)
-		Z_PARAM_STR(password)
+		Z_PARAM_PATH_STR(password)
 		Z_PARAM_LONG(algo)
 		Z_PARAM_OPTIONAL
 		Z_PARAM_ARRAY_OR_OBJECT_HT(options)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC