[pmwiki-devel] crypt problem on WAMP
Petko Yotov
5ko at 5ko.fr
Sun Jun 13 18:10:25 CDT 2010
On Friday 04 June 2010 19:29:08, Peter Bowers wrote :
> On Fri, Jun 4, 2010 at 4:50 PM, Petko Yotov <5ko at 5ko.fr> wrote:
> > On Friday 04 June 2010 14:23:28, Peter Bowers wrote :
> ...
> > Hello. I discovered that PHP 5.3 builds for Windows have buggy crypt()
> > function, notably, passwords needed to be at least 4 characters. See
> > http://www.pmwiki.org/wiki/PITS/01141
> >
> > If you use a longer password, does it work correctly?
>
> Sure enough (as per Petko), if I change "abc" to "abcd" then
> everything is fine. :-(
>
> Similarly (as per Dominique) if I change back to PHP 5.2.11 then "abc"
> works just fine. :-( But 5.3.0, 5.3.1, and 5.3.2 all gave me the
> error under windows.
Hello. Can you test the current code from subversion? Use _crypt() instead of
crypt(). The workaround is what Pm suggested earlier:
http://www.pmichaud.com/pipermail/pmwiki-devel/2010-June/001916.html
I just realize that while the workaround should work in broken PHP
installations, once these installations are upgraded and fixed, the saved
passwords may stop working. So, we should probably look for a better solution,
like simply telling people to have passwords of 4 or more characters.
Thanks,
Petko
More information about the pmwiki-devel
mailing list