From:             [EMAIL PROTECTED]
Operating system: Redhat 7.3, kernel 2.4.19
PHP version:      4.2.3
PHP Bug Type:     *Encryption and hash functions
Bug description:  crypt() only generates DES results, not md5, when compiled 
--with-apxs2

I haven't tried the CVS snapshots yet, though I will shortly.  I did go
back and try php4.2.2, and the problem seems to exist there as well.

Basically, when I compile PHP standalone, or for apxs, the crypt()
function correctly returns MD5 results when it should, but when compiled
with apxs2, it does not.  Instead, it generates DES results, regardless of
what salt is given, or even if no salt is provided.

I've also tried it both with and without "--with-openssl".  It makes no
difference. 

This is with Apache 2.0.42. 

Script used:

<? echo crypt("test", '$1$testsalt'); ?> 


Works (does MD5 correctly):

'./configure' '--enable-exif' '--with-gd' '--enable-gd-native-ttf'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr'
'--with-ttf' '--with-mysql=/usr' '--with-zlib'
'--enable-inline-optimization' '--with-bz2' '--with-openssl'

Does not (only returns DES):

 './configure' '--enable-exif' '--with-gd' '--enable-gd-native-ttf'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr'
'--with-ttf' '--with-apxs2' '--with-mysql=/usr' '--with-zlib'
'--enable-inline-optimization' '--with-bz2' '--with-openssl'


-- 
Edit bug report at http://bugs.php.net/?id=19764&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=19764&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=19764&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=19764&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=19764&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=19764&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=19764&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=19764&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=19764&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=19764&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=19764&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19764&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=19764&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=19764&r=isapi

Reply via email to