PHP Classes

Nice interesting class

Recommend this page to a friend!

      PassGen  >  All threads  >  Nice interesting class  >  (Un) Subscribe thread alerts  
Subject:Nice interesting class
Summary:Found two problems with passGen::mkPassword()
Date:2010-08-21 14:22:03
Update:2010-08-27 13:39:28

  1. Nice interesting class   Reply   Report abuse  
Picture of Orlando Orlando - 2010-08-21 14:22:04
Hi, I'm from Argentina too but I'm posting this in english so everyone can read it.

First of all it's a very nice, simple and tidy class, but you have an undefined variable $repit (should be $repitLetters) on line 32.

The second bug is on line 40 (the error is thrown on lines 61, 64 and 67 actually) in the FOR sentence should be $x <= 5, because you are using index 5 (ie. $const[5])

  2. Re: Nice interesting class   Reply   Report abuse  
Picture of Ricardo Ricardo - 2010-08-27 13:39:29 - In reply to message 1 from Orlando
Thank you. I'll fix the errors you find.

For more information send a message to info at phpclasses dot org.