Bug #71186 [Asn->Fbk]: session.hash_function - algorithm changes
| From: | yohgaki@php.net | Date: | Sun, 17 Jan 2016 07:58:35 +0000 |
| Subject: | Bug #71186 [Asn->Fbk]: session.hash_function - algorithm changes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198726@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71186&edit=1
ID: 71186
Updated by: yohgaki@php.net
Reported by: akauffman at ne4u dot com
Summary: session.hash_function - algorithm changes
-Status: Assigned
+Status: Feedback
Type: Bug
Package: Session related
Operating System: Ubuntu 14.04 LTS
PHP Version: 7.0.1
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
The reason why the test fails is
session.hash_bits_per_character = 5
If you change this to
session.hash_bits_per_character = 4
or set this value in the phpt, then it would pass.
According to the test result, it seems it's working as expected.
I guess you are experiencing this in web environment. Could you execute php script part of the phpt
and check the output? What is your Server API? (see phpinfo() output for used Server API)
Previous Comments:
------------------------------------------------------------------------
[2016-01-11 16:07:35] akauffman at ne4u dot com
grep -i ^session\. /usr/local/php7/lib/php.ini
session.save_handler = memcached
session.save_path = 'xxx.xxx.xxx.xx1:11211,xxx.xxx.xxx.xx2:11211'
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = ZEBRA
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = sha512
session.hash_bits_per_character = 5
session.upload_progress.name = "ZEBRA_SESSION_UPLOAD_PROGRESS"
------------------------------------------------------------------------
[2016-01-11 15:56:50] akauffman at ne4u dot com
cat bug71186.log
---- EXPECTED OUTPUT
int(128)
int(128)
int(40)
int(40)
---- ACTUAL OUTPUT
int(103)
int(103)
int(32)
int(32)
---- FAILED
------------------------------------------------------------------------
[2016-01-10 04:22:37] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2015-12-29 22:31:04] yohgaki@php.net
Could you paste the content of
ext/session/tests/bug71186.log
Your system uses this INI file
INI actual : /usr/local/php7/lib/php.ini
Could you pate the session section of this INI?
------------------------------------------------------------------------
[2015-12-22 15:50:29] akauffman at ne4u dot com
Related To: Bug #71186
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71186
--
Edit this bug report at https://bugs.php.net/bug.php?id=71186&edit=1