Home » PEAR » PEAR » Bug #167
The PEAR_Autoloader makes case sensitive comparison of method names
Details
| Submitted | 2003-10-30 03:14 UTC |
|---|---|
| From | LingWitt at insightbb dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 5.0.0b1 (beta1) |
| OS | Mac 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]