From:             
Operating system: Windows 7 x86
PHP version:      5.3.6
Package:          *Encryption and hash functions
Bug Type:         Bug
Bug description:crypt function 

Description:
------------
Win 7 x64

PHP 5.3.6 x86 MSVC9 (Visual C++ 2008) Thread Safety AS Apache 2.2 Module

Apache/2.2.17 x86 NO SSL



Test script:
---------------
<pre>

<?php 

echo crypt("dev", '$1$dW0.is5.$10CH101gGOr1677ZYd517.'); 

?>

Expected result:
----------------
$1$dW0.is5.$10CH101gGOr1677ZYd517.

Actual result:
--------------
FireFox 4:

$1$dW0.is5.$fELOCg/o4M4JSqjT0FAaZ1



IE 9 with meny F5 refresh actual result is

Result 1: $1$dW0.is5.$PAX1vDQNMC0Ag2U3joEb71

Result 2: $1$dW0.is5.$fELOCg/o4M4JSqjT0FAaZ1

in cycle



If I reload apache 2 service hash result are changing to other, etc

FF: $1$dW0.is5.$j9t0S3va.9brcE2kIILGx1

IE: $1$dW0.is5.$d2QAXWA.uqHWaY1KopvYr., $1$dW0.is5.$j9t0S3va.9brcE2kIILGx1

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54721&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54721&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54721&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54721&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54721&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54721&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54721&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54721&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54721&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54721&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54721&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54721&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54721&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54721&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54721&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54721&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54721&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54721&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54721&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54721&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54721&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54721&r=mysqlcfg

Reply via email to