Home » Caching » Cache_Lite » Bug #9669
function drop() is broken
Details
| Submitted | 2006-12-21 07:33 UTC |
|---|---|
| From | Olaf dot Nix at gmx dot de |
| Status | No Feedback |
| Package | Cache_Lite |
| PHP Version | 4.3.11 |
| Roadmaps | (Not assigned) |
Comments
[2006-12-21 07:33 UTC] Olaf dot Nix at gmx dot de
Description:
------------
Die Methode drop in der Klasse Cache_Lite_Function arbeitet nicht immer zuverlässig, da zur Erzeugung der Cache ID die Funktion func_get_args() direkt als Funktions-Parameter an _makeId() übergeben wird.
Hier ein Auszug aus dem PHP Manual:
"This function cannot be used directly as a function parameter. Instead, its result may be assigned to a variable, which can then be passed to the function.
So funktioniert es (zumindest bei mir) eindwandfrei:
function drop()
{
$arguments = func_get_args();
$id = $this->_makeId($arguments);
$this->remove($id, $this->_defaultGroup);
}
[2007-01-08 21:48 UTC] fab at php dot net
sorry but I don't speak german
please write bug reports in english (or in french)
[2007-01-08 21:48 UTC] fab at php dot net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PEAR.