PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #6291

Caches arn't cleared correctly

Details

Submitted2005-12-19 17:54 UTC
Fromshinyshez at yahoo dot co dot uk
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.4
OSFedora 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);