Home » Database » DB_DataObject » Bug #6291
Caches arn't cleared correctly
Details
| Submitted | 2005-12-19 17:54 UTC |
|---|---|
| From | shinyshez at yahoo dot co dot uk |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.4 |
| OS | Fedora Core 4 x86_64 |
| Roadmaps | (Not assigned) |
Comments
[2005-12-19 17:54 UTC] shinyshez at yahoo dot co dot uk
Description:
------------
Class names are lower cased for using as cache indexes
everywhere except in _clear_cache() meaning that if you
have mixed or uppercase class names your caches will never
clear.
Test script:
---------------
--- /usr/share/pear/DB/DataObject.php~ 2005-12-17 00:28:06.000000000 +0000
+++ /usr/share/pear/DB/DataObject.php 2005-12-19 17:51:44.000000000 +0000
@@ -1998,7 +1998,7 @@
{
global $_DB_DATAOBJECT;
- $class = get_class($this);
+ $class = strtolower(get_class($this));
if (!empty($_DB_DATAOBJECT['CONFIG']['debug'])) {
$this->debug("Clearing Cache for ".$class,1);