Bug #81476 [NEW]: "with-password-argon2" does build but not work

From: Date: Fri, 24 Sep 2021 17:45:40 +0000
Subject: Bug #81476 [NEW]: "with-password-argon2" does build but not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236820@lists.php.net to get a copy of this message
From:             s dot grindau at smart-media-gmbh dot de
Operating system: Arch Linux X64
PHP version:      8.1.0RC2
Package:          *Compile Issues
Bug Type:         Bug
Bug description:"with-password-argon2" does build but not work

Description:
------------
compiling from source with "with-password-argon2" results in argon2 not
beeing available.

after compiling 8.0.11

php -r 'print_r(get_defined_constants());' | grep -i argon
[PASSWORD_ARGON2I] => argon2i
[PASSWORD_ARGON2ID] => argon2id
[PASSWORD_ARGON2_DEFAULT_MEMORY_COST] => 65536
[PASSWORD_ARGON2_DEFAULT_TIME_COST] => 4
[PASSWORD_ARGON2_DEFAULT_THREADS] => 1
[PASSWORD_ARGON2_PROVIDER] => standard

after compiling 8.1.0RC1 OR 8.1.0RC2
php -r 'print_r(get_defined_constants());' | grep -i argon
-> nothing!


i tried one build with sodium, which then showed argon2 because i found
a hint on stackoverflow which then had the constants available but
crashed because of the $options['threads' => 8 ], because it supports
only one thread.
However i wanted to use it like before without sodium, etc.

I have to say that i am not THAT experienced in building php from
source. However other builds from the stable releases work with the same
configure options and i havent a bugreport about this (yet).

Thank you.


Test script:
---------------
./configure \
--disable-all \
--with-password-argon2 \
...
make -j32
sudo make install

Expected result:
----------------
I expected the argon2id constants to be available and the
password_hash() function to work like it ever did. 


-- 
Edit bug report at https://bugs.php.net/bug.php?id=81476&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81476&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81476&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81476&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81476&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81476&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81476&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81476&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81476&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81476&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81476&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81476&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81476&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81476&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81476&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81476&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81476&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81476&r=mysqlcfg


Thread (7 messages)

« previous php.bugs (#236820) next »