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 #9178

Cache Lite drop method doesn't return true

Details

Doc Bug #9178Cache Lite drop method doesn't return true
Submitted2006-10-27 08:32 UTC
Frombaumeler at gmx dot net
Assignedcweiske
StatusClosed
PackageCache_Lite
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-10-27 08:32 UTC] baumeler at gmx dot net

Description:
------------
The Cache_Lite drop method doesn't return a true state
as reported in the documentation.

Test script:
---------------
<?php
//Function.php
/**
* Drop a cache file
*
* Arguments of this method are read with func_get_args. So it doesn't appear
* in the function definition. Synopsis :
* remove('functionName', $arg1, $arg2, ...)
* (arg1, arg2... are arguments of 'functionName')
*
* @return boolean true if no problem
* @access public
*/
function drop()
{
$id = $this->_makeId(func_get_args());
$this->remove($id, $this->_defaultGroup);
}
?>