Edit report at http://bugs.php.net/bug.php?id=54721&edit=1
ID: 54721 User updated by: os at irj dot ru Reported by: os at irj dot ru Summary: crypt function Status: Open Type: Bug Package: *Encryption and hash functions Operating System: Windows 7 x64 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Sorry, in cli mode bug too (in previos command I use a old CLI php) This is a correct log D:\Web\var\avers.localhost>D:\Web\php53\php.exe D:\Web\var\avers.localhost\test. php <pre> $1$dW0.is5.$.O4MUs7rYRmlSuPIA16Jt. D:\Web\var\avers.localhost>D:\Web\php53\php.exe D:\Web\var\avers.localhost\test. php <pre> $1$dW0.is5.$sVRmxDm7.B8xcTu1HZKf6/ D:\Web\var\avers.localhost>D:\Web\php53\php.exe D:\Web\var\avers.localhost\test. php <pre> $1$dW0.is5.$zI8c4NaU.KzK2y5u.W4Ax. D:\Web\var\avers.localhost>D:\Web\php53\php.exe -v PHP 5.3.6 (cli) (built: Mar 17 2011 10:37:07) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies D:\Web\var\avers.localhost>D:\curl\curl.exe http://avers.localhost/test.php <pre> $1$dW0.is5.$PD4o/IBVjS2AVWa1.Rpdi/ D:\Web\var\avers.localhost>D:\curl\curl.exe http://avers.localhost/test.php <pre> $1$dW0.is5.$PD4o/IBVjS2AVWa1.Rpdi/ D:\Web\var\avers.localhost>..\..\apache22\bin\httpd.exe -k restart httpd.exe: Could not reliably determine the server's fully qualified domain name , using 192.168.0.240 for ServerName D:\Web\var\avers.localhost>D:\curl\curl.exe http://avers.localhost/test.php <pre> $1$dW0.is5.$.y5yjTLPgypzeHv0FU7zW0 D:\Web\var\avers.localhost>D:\Web\php53\php.exe D:\Web\var\avers.localhost\test .php <pre> $1$dW0.is5.$m.YjcIs.joLsQHQGZ0bxn/ D:\Web\var\avers.localhost> Previous Comments: ------------------------------------------------------------------------ [2011-05-12 18:50:22] os at irj dot ru In CLI mode crypt function work normaly, but as apache 2 module bug present CMD Log: Microsoft Windows [Version 6.1.7601] (c) ÐоÑпоÑаÑÐ¸Ñ ÐайкÑоÑоÑÑ (Microsoft Corp.), 2009. ÐÑе пÑава заÑиÑенÑ. C:\Windows\system32>cd D:\Web\var\avers.localhost C:\Windows\system32>d: D:\Web\var\avers.localhost>D:\Web\bin\php\php.exe D:\Web\var\avers.localhost\te st.php <pre> $1$dW0.is5.$em49ePD07X75OTvpVod410 D:\Web\var\avers.localhost>D:\curl\curl.exe http://avers.localhost/test.php <pre> $1$dW0.is5.$d2QAXWA.uqHWaY1KopvYr. D:\Web\var\avers.localhost>..\..\apache22\bin\httpd.exe -k restart httpd.exe: Could not reliably determine the server's fully qualified domain name , using 192.168.0.240 for ServerName D:\Web\var\avers.localhost>D:\curl\curl.exe http://avers.localhost/test.php <pre> $1$dW0.is5.$PD4o/IBVjS2AVWa1.Rpdi/ D:\Web\var\avers.localhost> ------------------------------------------------------------------------ [2011-05-12 18:32:55] paj...@php.net The browsers have nothing to do with the server side running code. Please try using the CLI interface (cmd line) to confirm the results. ------------------------------------------------------------------------ [2011-05-12 18:00:38] os at irj dot ru Sorry, OS is Windows 7 x64 with 8GB RAM, CPU Core I5 760 (4 cores). ------------------------------------------------------------------------ [2011-05-12 17:50:21] os at irj dot ru 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 this bug report at http://bugs.php.net/bug.php?id=54721&edit=1