PHP Classes

I like the concept but found a flaw in the class.

Recommend this page to a friend!

      Overload  >  All threads  >  I like the concept but found a flaw...  >  (Un) Subscribe thread alerts  
Subject:I like the concept but found a flaw...
Summary:Package rating comment
Messages:1
Author:Fabian Schmengler
Date:2009-12-09 19:31:20
 

Fabian Schmengler rated this package as follows:

Utility: Sufficient
Consistency: Good
Documentation: Good
Examples: Good

  1. I like the concept but found a flaw...   Reply   Report abuse  
Picture of Fabian Schmengler Fabian Schmengler - 2009-12-09 19:31:20
I like the concept but found a flaw in the class. A function variant with no parameters will lead to an error because you try to access a protected method. On the other hand, if this does not result in an error in your PHP version you will have access to all protected methods ;-)

Therefore I changed line 91 from <code>$func = "";</code> to <code>$func = "_";</code> and declare overloaded methods without parameters with a trailing underscore.