PHP Classes

Little Bug

Recommend this page to a friend!

      Ultimate MySQL  >  All threads  >  Little Bug  >  (Un) Subscribe thread alerts  
Subject:Little Bug
Summary:When using an empty MySQL password
Messages:1
Author:Javier Zapata
Date:2008-09-07 19:01:47
 

  1. Little Bug   Reply   Report abuse  
Picture of Javier Zapata Javier Zapata - 2008-09-07 19:01:47
If you try to instantiate the class with the $connect @param as true and the $password @param as an empty value (also providing the rest of the required params, of course), the connection isn't made although you provide the correct data. This happens because the constructor of the class verifies if the password is empty before connecting (line 74), and if not, it just doesn't connect. In order to solve the problem, you only need to eliminate this verification.

Congratulations for such a good class and sorry for my english!