cvs: php4 /pear/Cache/Container file.php

From: Date: Fri, 14 Sep 2001 14:21:31 +0000
Subject: cvs: php4 /pear/Cache/Container file.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-846@lists.php.net to get a copy of this message
uw Fri Sep 14 10:21:31 2001 EDT Modified files: /php4/pear/Cache/Container file.php Log: Patch I revcieved from Vinai Kopp. He's one of the guys that had the initial idea. Here's what he wrote: " diff -r1.16 file.php 113c113 < $expire = trim(fgets($fh, 11)); --- > $expire = trim(fgets($fh, 12)) Es ging zwar alles bisher, aber wenn ich error_reporting(E_ALL) anschalte, meckert PHP Warning: unserialize() failed at offset 0 of 24897 bytes in /opt/php-4.0.5/lib/php/Cache/Container.php on line 406" Translation: Everything was fine until I used error_reporting(E_ALL). PHP complained: (see above) Index: php4/pear/Cache/Container/file.php diff -u php4/pear/Cache/Container/file.php:1.16 php4/pear/Cache/Container/file.php:1.17 --- php4/pear/Cache/Container/file.php:1.16 Sat Aug 11 04:08:06 2001 +++ php4/pear/Cache/Container/file.php Fri Sep 14 10:21:31 2001 @@ -16,7 +16,7 @@ // | Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: file.php,v 1.16 2001/08/11 08:08:06 sebastian Exp $ +// $Id: file.php,v 1.17 2001/09/14 14:21:31 uw Exp $ require_once 'Cache/Container.php'; @@ -24,7 +24,7 @@ * Stores cache contents in a file. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: file.php,v 1.16 2001/08/11 08:08:06 sebastian Exp $ +* @version $Id: file.php,v 1.17 2001/09/14 14:21:31 uw Exp $ */ class Cache_Container_file extends Cache_Container { @@ -110,7 +110,7 @@ // 1st line: expiration date // 2nd line: user data // 3rd+ lines: cache data - $expire = trim(fgets($fh, 11)); + $expire = trim(fgets($fh, 12)); $userdata = trim(fgets($fh, 257)); $cachedata = $this->decode(fread($fh, filesize($file))); fclose($fh);

« previous php.pear.cvs (#846) next »