tags:

views:

24

answers:

1

Hi in my localhost (WAMP-WINDOWS-VISTA)

echo substr($pwd,0,2); --> executing fine
echo crypt($pwd,substr($pwd,0,2));--> WHILE EXECUTING System gets hang

But this snippet working fine in my live.

How to fix this issue...

+3  A: 

What version of PHP are you using?

This is a well-known bug on PHP, though it was fixed in 5.3.2RC3.

See these bug reports for more info:

You can use hash_hmac() instead of crypt() for a quick fix.

vtorhonen