PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #167

The PEAR_Autoloader makes case sensitive comparison of method names

Details

Submitted2003-10-30 03:14 UTC
FromLingWitt at insightbb dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP Version5.0.0b1 (beta1)
OSMac OS X
Roadmaps(Not assigned)

Comments

[2003-10-30 03:14 UTC] LingWitt at insightbb dot com

Description:
------------
NOTE: This bug is so basic, I don't include the details.

The Autloader class gets the object to use with a method name like
this:

$this->_method_map[$method]

The problem is that $method is a case sensitive version of the
method name, which is not what is stored as a key. Therefore, the
necessary fix is:

$method = strtolower($method);

...

$this->_method_map[$method]