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 » Bug #1999

[PATCH] trifile container doesn't save userdata

Details

Submitted2004-07-27 23:18 UTC
Fromieure at php dot net
Assigneddufuz
StatusClosed
PackageCache
PHP Version4.3.8
OSLinux
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.