Edit report at https://bugs.php.net/bug.php?id=53789&edit=1
ID: 53789
Comment by: henno at schooljan dot nl
Reported by: richard at blueapex dot co dot uk
Summary: Setting session.hash_function doesn't change hash
function used.
Status: Wont fix
Type: Bug
Package: Session related
Operating System: Freebsd 8.1
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
This should still be fixed, or at least get documented somewhere.
Previous Comments:
------------------------------------------------------------------------
[2011-02-22 16:52:30] [email protected]
I think this is one of those situations where hash extension would need to be
compiled as part of "core php" for this feature to work.
------------------------------------------------------------------------
[2011-02-08 21:34:54] henno at schooljan dot nl
It does work when compiling in both hash and session modules into the main PHP
executable (by use of --enable-hash and --enable-session on the configure line).
The FreeBSD Ports strategy is to provide a slim PHP base package with a lot of
extra modules as extra packages to choose. Fine of course, but apparently the
has_function option breaks when one of the relevant modules are externally
loaded.
I found this out because I also run a Gentoo machine where this bug does not
manifest itself, and there the package strategy is to compile everything into
one big PHP executable.
So a quick temporary workaround for FreeBSD users is adding both --enable-hash
and --enable-session in the FreeBSD port Makefile for lang/php5 (and disable
the
external modules to prevent 'already loaded' warnings).
To summarize:
Steps to reproduce:
-------------------
Use either hash or session modules as external loadable module, setting reverts
to 0 when choosing a hash algo.
Workaround:
-----------
Compile both hash and session modules into the main PHP executable.
------------------------------------------------------------------------
[2011-02-01 15:11:08] richard at blueapex dot co dot uk
I have the hash extension enabled.
Doing print_r(hash_algos()) gives a fair few hashes. I'm using hash('SHA512',
$foo) for encrypting passwords so it defiantly is available to PHP.
------------------------------------------------------------------------
[2011-02-01 14:39:16] [email protected]
Do you have the hash extension enabled? Without that extension, hashing
algorithms
other than md5/sha1 will not be available.
------------------------------------------------------------------------
[2011-01-30 14:07:14] datahell at elxis dot org
I face the same problem on PHP 5.2.5 (x64) on my local installation Windows
Vista 64bit.
------------------------------------------------------------------------
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=53789
--
Edit this bug report at https://bugs.php.net/bug.php?id=53789&edit=1