Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread Thodoris
I have a problem with using crypt(), passing only one parameter (ie, no salt). When I do that, I get an empty string. When I do use a salt, it returns the expected value. Does anybody have any ideas what might be causing my problem? It only happens when I run it on my linux server, but not

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread port23user
I figured out that I was running an older version of Suhosin. Apparently this bug is fixed in Suhosin version 0.9.23 . I upgraded and everything works great now. Thanks for the help. Thodoris wrote: If no salt is provided, PHP will auto-generate a standard two character salt by

[PHP] problem using crypt() without a salt

2009-01-13 Thread port23user
I have a problem with using crypt(), passing only one parameter (ie, no salt). When I do that, I get an empty string. When I do use a salt, it returns the expected value. Does anybody have any ideas what might be causing my problem? It only happens when I run it on my linux server, but not