Home » Caching » Cache_Lite » Bug #9229
Fatal error using setToDebug();
Details
| Submitted | 2006-11-03 19:38 UTC |
|---|---|
| From | alegrand1 at gmail dot com |
| Status | Bogus |
| Package | Cache_Lite |
| PHP Version | 5.1.4 |
| OS | Any |
| 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