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 » Caching » Cache_Lite » Bug #9229

Fatal error using setToDebug();

Details

Submitted2006-11-03 19:38 UTC
Fromalegrand1 at gmail dot com
StatusBogus
PackageCache_Lite
PHP Version5.1.4
OSAny
Roadmaps(Not assigned)

Comments

[2006-11-03 19:38 UTC] alegrand1 at gmail dot com

Description:
------------
When using setToDebug(), the fatal error is produced:

Fatal error: Using $this when not in object context in /usr/local/lib/php/Cache/Lite.php on line 458

Test script:
---------------
<?php

require_once 'Cache/Lite.php';
$cache_options = array('lifeTime' => time());
$cache = new Cache_Lite($cache_options);
Cache_Lite::setToDebug();

?>

[2006-11-03 23:12 UTC] fab at php dot net

setToDebug() is not a "static method"

you have to use $cache->setToDebug(); instead

thanks anyway