Fixed case insensitivity for magic methods

As per what can be found in the PEAR parent class.