|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-10 20:00 UTC] sniper@php.net
[2001-10-10 20:32 UTC] victor at lab dot de
[2001-10-10 22:45 UTC] sniper@php.net
[2001-10-11 16:19 UTC] victor at lab dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Hello folks, the problems described in 9177 and 11648 still persist in the current CVS version of PHP. configure fails to detect that MD5 hash is available when compiled --with-openssl. After grabbing fresh CVS version: $ ./configure --with-openssl && make <configure output> $ ./php -v 4.0.8-dev I grabbed the example from ext/standard/config.m4 and: $ ./php -q <? print crypt("rasmuslerdorf", "$1$rasmusle$")."\n"; ?> $1Hat1hn6A1pw this should be 'rISCgZzpwk3UhDidwXvin0' as in config.m4. same with a c sample: $ cat >test.c #include <crypt.h> main() { printf("%s\n", crypt("rasmuslerdorf", "$1$rasmusle$")); } $ gcc -lcrypto -lcrypt test.c $ ./a.out $1Hat1hn6A1pw it it the linkage order that causes the trouble. the same with lcrypto linked last yields in the correct: $ gcc -lcrypt -lcrypto test.c $ ./a.out $1$rasmusle$rISCgZzpwk3UhDidwXvin0 the config used for these examples was: * latest PHP CVS * libcrypt-2.2.4 * openssl 0.9.6b Victor