cvs: pear /Cache package.xml /Cache/Container shm.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 25 May 2005 10:00:42 +0000 |
| Subject: | cvs: pear /Cache package.xml /Cache/Container shm.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32114@lists.php.net to get a copy of this message | ||
dufuz Wed May 25 06:00:42 2005 EDT
Modified files:
/pear/Cache package.xml
/pear/Cache/Container shm.php
Log:
Fix bug #4429 Call-time pass-by-reference has been deprecated
http://cvs.php.net/diff.php/pear/Cache/package.xml?r1=1.38&r2=1.39&ty=u
Index: pear/Cache/package.xml
diff -u pear/Cache/package.xml:1.38 pear/Cache/package.xml:1.39
--- pear/Cache/package.xml:1.38 Wed May 18 17:38:51 2005
+++ pear/Cache/package.xml Wed May 25 06:00:38 2005
@@ -29,11 +29,11 @@
</maintainers>
<license>PHP License</license>
<release>
- <version>1.5.5RC2</version>
- <date>2005-05-18</date>
+ <version>1.5.5RC3</version>
+ <date>2005-05-25</date>
<state>beta</state>
<notes>
- - package.xml was giving errors when installed because of new line at the end.
+ - Fixed bug #4429 Call-time pass-by-reference has been deprecated
</notes>
<filelist>
<dir name="/" baseinstalldir="Cache">
@@ -65,6 +65,13 @@
</deps>
</release>
<changelog>
+ <version>1.5.5RC2</version>
+ <date>2005-05-18</date>
+ <state>beta</state>
+ <notes>
+ - package.xml was giving errors when installed because of new line at the end.
+ </notes>
+ </release>
<release>
<version>1.5.5RC1</version>
<date>2005-04-29</date>
http://cvs.php.net/diff.php/pear/Cache/Container/shm.php?r1=1.5&r2=1.6&ty=u
Index: pear/Cache/Container/shm.php
diff -u pear/Cache/Container/shm.php:1.5 pear/Cache/Container/shm.php:1.6
--- pear/Cache/Container/shm.php:1.5 Wed Dec 15 04:09:30 2004
+++ pear/Cache/Container/shm.php Wed May 25 06:00:41 2005
@@ -16,7 +16,7 @@
// | Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: shm.php,v 1.5 2004/12/15 09:09:30 dufuz Exp $
+// $Id: shm.php,v 1.6 2005/05/25 10:00:41 dufuz Exp $
require_once 'Cache/Container.php';
@@ -29,7 +29,7 @@
* caching algorithm using PHP.
*
* @author Ulf Wendel <ulf.wendel@phpdoc.de>
-* @version $Id: shm.php,v 1.5 2004/12/15 09:09:30 dufuz Exp $
+* @version $Id: shm.php,v 1.6 2005/05/25 10:00:41 dufuz Exp $
* @package Cache
*/
class Cache_Container_shm extends Cache_Container
@@ -231,7 +231,7 @@
$cachedata = $this->decode(shmop_read($this->shm_id, 0, $this->shm_size));
}
- $this->doGarbageCollection($maxlifetime, &$cachedata);
+ $this->doGarbageCollection($maxlifetime, $cachedata);
if ($this->total_size > $this->highwater) {
krsort($this->entries);
reset($this->entries);
@@ -273,9 +273,10 @@
// ugly but simple to implement :/
$size = strlen($this->encode($data));
- $this->entries[$size][] = array('group' => $group,
- 'id' => $id
- );
+ $this->entries[$size][] = array(
+ 'group' => $group,
+ 'id' => $id
+ );
$this->total_size += $size;
}