Home » Caching » Cache » Bug #1999
[PATCH] trifile container doesn't save userdata
Details
| Submitted | 2004-07-27 23:18 UTC |
|---|---|
| From | ieure at php dot net |
| Assigned | dufuz |
| Status | Closed |
| Package | Cache |
| PHP Version | 4.3.8 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-07-27 23:18 UTC] ieure at php dot net
Description:
------------
As the subject says, the Trifile Container never saves
userdata. It uses the $userData variable when saving, but
the argument is $userdata.
Patch follows:
Index: trifile.php
===================================================================
RCS
file: /cvsroot/madzap/include/PEAR/usr/lib/php4/pear/Cache/Container/trifile.php,v
retrieving revision 1.1
diff -u -r1.1 trifile.php
--- trifile.php 2 Apr 2004 00:04:09 -0000 1.1
+++ trifile.php 27 Jul 2004 23:08:06 -0000
@@ -110,7 +110,7 @@
if (PEAR::isError($res =
$this->_saveData($this->_getExpFile($file), $expires))) {
return $res;
}
- if(PEAR::isError($res =
$this->_saveData($this->_getUDFile($file), $userData))) {
+ if (PEAR::isError($res =
$this->_saveData($this->_getUDFile($file), $userdata))) {
return $res;
}
Expected result:
----------------
Trifile container should save userdata.
Actual result:
--------------
Trifile container does not save userdata.